EKS
Simplyblock runs on EKS with managed node groups. A production-like layout separates the control plane, the storage nodes, and the workloads that consume simplyblock volumes into dedicated node groups, each tainted so that nothing else is scheduled onto it.
!!!! info Hyper-converged deployments (co-location of workloads and storage) are supported on EKS, but complicate upgrades.
Node Groups
The following node groups are recommended. Instance types are examples; the hardware requirements and the recommended instance types apply.
| Node Group | Purpose | Example Instance Type | Example Taint |
|---|---|---|---|
| System | Cluster add-ons: CoreDNS, cert-manager, the Simplyblock Operator, the CSI controller | t3a.large |
None |
| Control plane | The simplyblock control plane, including FoundationDB and Prometheus | m6a.xlarge, 100 GB gp3 boot disk |
simplyblock.io/role=controlplane:NoSchedule |
| Storage | Simplyblock storage nodes | m6id, i4i, or i3en instances |
storage.simplyblock.io/dedicated=true:NoSchedule |
| Clients | Workloads that mount simplyblock volumes | Any | simplyblock.io/role=client:NoSchedule |
The taint keys and values are examples. Any taint works, as long as the same taint is referenced when the control plane is installed and when the storage cluster is deployed (see EKS).
Each node group also carries a label, for example, sb-role: controlplane, sb-role: storage-a, or sb-role: client.
The label is what the Helm values and the discovery select nodes by. A storage node group per storage cluster keeps
discovery runs of different clusters apart.
Storage nodes require instances with local NVMe instance storage. EBS volumes work, but are not recommended for storage nodes for performance reasons.
Instance Types
Simplyblock has been tested on and recommends the following instance types. Other instance types can be used as long as they fulfill the hardware requirements. At least 8 vCPUs are required for a storage node.
Three criteria drive the choice of an instance type for storage nodes:
- The minimum requirements of vCPUs and RAM
- Locally attached NVMe devices
- Network performance (dedicated, not "up to")
For storage nodes in disaggregated clusters, the following instance types are commonly recommended:
| Instance Type | vCPU(s) | RAM | Locally Attached Storage | Network Performance |
|---|---|---|---|---|
| i4g.8xlarge | 32 | 256 GB | 2x 3750 GB | 18.5 GBit/s |
| i4g.16xlarge | 64 | 512 GB | 4x 3750 GB | 37.5 GBit/s |
| i3en.6xlarge | 24 | 192 GB | 2x 7500 GB | 25 GBit/s |
| i3en.12xlarge | 48 | 384 GB | 4x 7500 GB | 50 GBit/s |
| i3en.24xlarge | 96 | 768 GB | 8x 7500 GB | 100 GBit/s |
| m5d.4xlarge | 16 | 64 GB | 2x 300 GB | 10 GBit/s |
| i4i.8xlarge | 32 | 256 GB | 2x 3750 GB | 18.75 GBit/s |
| i4i.12xlarge | 48 | 384 GB | 3x 3750 GB | 28.12 GBit/s |
For hyper-converged workers, any instance type with a local NVMe SSD can be chosen.
pNFS volumes
The pNFS metadata server requires a worker node with a usable /dev/kvm (see
Virtualization Support for pNFS). On EC2, this means
nested virtualization on a virtualized instance type, where the instance type supports it, or a bare-metal
instance type, which exposes /dev/kvm once the KVM kernel modules are loaded.
Availability Zones and Placement
Storage nodes and client nodes are best placed in a single availability zone. Traffic between availability zones adds latency to every write and is billed. Within the zone, storage nodes are placed into a placement group of type Spread, so that no two storage nodes share the same hardware.
Important
A storage cluster can span availability zones in two ways:
- Use failure domains and the zone name to label nodes with the failure domain. This works across two or four sites. With 4 sites, two can be down concurrently. The protection overhead is x2 in both cases.
- Use synchronous replication on top of per-zone distributed erasure coding. This works across two sites and survives a site outage and a local node outage concurrently. The protection overhead is x2.5.
- In both cases, still use a placement group of type Spread for the nodes in the storage node pool per AZ.
Node Images
Amazon Linux 2023 is not suitable for client nodes
Nodes that mount simplyblock volumes require a Linux kernel with native
NVMe over Fabrics multipathing (CONFIG_NVME_MULTIPATH).
The kernel of the default Amazon Linux 2023 EKS node image is built without it. Every path of a volume then appears
as a separate block device, and the client cannot switch paths. A storage node outage, a failover, and the cutover
of an online migration interrupt the I/O of the volume.
Client nodes therefore run an image with native NVMe multipathing, for example, the Ubuntu 24.04 EKS images
published by Canonical (ubuntu-eks/k8s_<VERSION>/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*).
Storage nodes and control plane nodes may run Amazon Linux 2023. The storage engine runs in user space, and the connections between storage nodes do not use the NVMe initiator of the host kernel.
Whether a node supports native NVMe multipathing is checked on the host:
cat /sys/module/nvme_core/parameters/multipath
The answer must be Y. Once a volume is attached, nvme list-subsys shows a single subsystem with one live path per
storage node that serves the volume, and the volume appears as one block device.
nvme-subsys1 - NQN=nqn.2023-02.io.simplyblock:<CLUSTER_UUID>:lvol:<VOLUME_UUID>
iopolicy=numa
\
+- nvme2 tcp traddr=192.168.4.223,trsvcid=4426 live
+- nvme1 tcp traddr=192.168.20.206,trsvcid=4426 live
The NVMe/TCP initiator, the nvme-tcp kernel module, is not part of the Ubuntu EKS images. The Ubuntu AWS kernel
ships it in the package linux-modules-extra-<KERNEL_VERSION>, which the images do not install. Without it, the CSI
driver cannot load the module, and attaching a volume fails with
Failed to open /dev/nvme-fabrics: No such file or directory. The package is installed, and the module loaded, before
the node joins the cluster:
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y linux-modules-extra-$(uname -r)
echo nvme-tcp > /etc/modules-load.d/nvme-tcp.conf
modprobe nvme-tcp
/dev/nvme-fabrics exists once the module is loaded, and the nvme-tcp.conf entry loads it again after a reboot.
A node group with a custom image needs an explicit bootstrap command in eksctl. The Ubuntu EKS images provide
/etc/eks/bootstrap.sh. Labels and taints are passed to the kubelet, and the API server endpoint and the cluster CA
are stated explicitly, because the node role is usually not allowed to read them from the EKS API.
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: <CLUSTER_NAME>
region: <REGION>
managedNodeGroups:
- name: clients
ami: <UBUNTU_EKS_AMI_ID>
amiFamily: Ubuntu2404
instanceType: c6a.2xlarge
desiredCapacity: 3
availabilityZones: ["<AVAILABILITY_ZONE>"]
labels: {sb-role: client}
taints: [{key: simplyblock.io/role, value: client, effect: NoSchedule}]
overrideBootstrapCommand: |
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y linux-modules-extra-$(uname -r)
echo nvme-tcp > /etc/modules-load.d/nvme-tcp.conf
modprobe nvme-tcp
/etc/eks/bootstrap.sh <CLUSTER_NAME> \
--apiserver-endpoint '<API_SERVER_ENDPOINT>' \
--b64-cluster-ca '<BASE64_CLUSTER_CA>' \
--dns-cluster-ip <CLUSTER_DNS_IP> \
--kubelet-extra-args '--node-labels=sb-role=client --register-with-taints=simplyblock.io/role=client:NoSchedule'
The API server endpoint and the CA are read with
aws eks describe-cluster --name <CLUSTER_NAME> --query 'cluster.[endpoint,certificateAuthority.data]'. The cluster DNS IP
is the tenth address of the service CIDR, 10.100.0.10 for the default CIDR 10.100.0.0/16.
The control plane and storage node groups are declared the same way, with their own labels and taints, and without a custom image.
managedNodeGroups:
- name: controlplane
instanceType: m6a.xlarge
desiredCapacity: 3
availabilityZones: ["<AVAILABILITY_ZONE>"]
volumeSize: 100
volumeType: gp3
labels: {sb-role: controlplane}
taints: [{key: simplyblock.io/role, value: controlplane, effect: NoSchedule}]
updateConfig: {maxUnavailable: 1}
- name: storage-a
instanceType: m6id.2xlarge
desiredCapacity: 3
availabilityZones: ["<AVAILABILITY_ZONE>"]
labels: {sb-role: storage-a}
taints: [{key: storage.simplyblock.io/dedicated, value: "true", effect: NoSchedule}]
updateConfig.maxUnavailable: 1 makes an upgrade of the control plane node group replace one node at a time (see
Upgrading EKS).
Storage for the Control Plane
FoundationDB and Prometheus of the control plane store their data on persistent volumes. An EKS cluster has no default
StorageClass, so the EBS CSI driver add-on and a gp3 StorageClass are created first. The node role (or an IAM
role for the add-on's service account) needs the AWS managed policy AmazonEBSCSIDriverPolicy.
aws eks create-addon --cluster-name <CLUSTER_NAME> --addon-name aws-ebs-csi-driver
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ebs-gp3
provisioner: ebs.csi.aws.com
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
allowVolumeExpansion: true
parameters:
type: gp3
Host-local storage, such as a hostPath StorageClass, is not suitable for the control plane on EKS. An upgrade of a managed node group replaces its nodes with new instances, and data on the replaced instance is lost. An EBS volume is attached to the replacement node in the same availability zone.
Keyless S3 Backup Credentials (IRSA)
Backups can reach their S3 bucket with no access key stored in Kubernetes at all, through IAM Roles for Service
Accounts (IRSA): an IAM role is attached to the simplyblock-storage-node-sa and simplyblock-sa ServiceAccounts, and
EKS's pod-identity webhook injects the credentials every pod running as one of them needs. This replaces the
credentialsSecretRef Secret described in
Backup Credentials Secret.
Associating an OIDC Provider
IRSA requires an IAM OIDC provider associated with the cluster. Most clusters created with eksctl already have one.
aws eks describe-cluster --name <CLUSTER_NAME> --query "cluster.identity.oidc.issuer" --output text
eksctl utils associate-iam-oidc-provider --cluster <CLUSTER_NAME> --approve
Creating the IAM Role
The trust policy scopes the role to this namespace's two accounts specifically, through the OIDC provider's sub
claim. Replace <ACCOUNT_ID>, <OIDC_PROVIDER> (the issuer URL from the previous step, without the https://
prefix), and <NAMESPACE> (simplyblock in the examples throughout these docs).
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::<ACCOUNT_ID>:oidc-provider/<OIDC_PROVIDER>"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"<OIDC_PROVIDER>:aud": "sts.amazonaws.com"
},
"StringLike": {
"<OIDC_PROVIDER>:sub": [
"system:serviceaccount:<NAMESPACE>:simplyblock-storage-node-sa",
"system:serviceaccount:<NAMESPACE>:simplyblock-sa"
]
}
}
}
]
}
The permissions policy grants only what the backup bucket needs.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:ListBucket"],
"Resource": "arn:aws:s3:::<BUCKET_NAME>"
},
{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject"],
"Resource": "arn:aws:s3:::<BUCKET_NAME>/*"
}
]
}
aws iam create-role \
--role-name simplyblock-backup \
--assume-role-policy-document file://trust-policy.json
aws iam put-role-policy \
--role-name simplyblock-backup \
--policy-name simplyblock-backup-s3 \
--policy-document file://backup-policy.json
Configuring the Operator
The role's ARN goes on the ControlPlane singleton, which annotates both ServiceAccounts with it. The Helm chart
exposes this as controlplane.local.eksRoleARN:
helm upgrade --install simplyblock-operator simplyblock/simplyblock-operator \
-n simplyblock --create-namespace \
--set controlplane.local.eksRoleARN=arn:aws:iam::<ACCOUNT_ID>:role/simplyblock-backup \
# ... the rest of the usual values ...
A cluster deployed before the role was set picks it up on the next helm upgrade: the operator keeps the annotation
in sync with the value on every reconcile, so no manual annotation is needed. A pod already running when the
annotation changes keeps the credentials it started with, though, since EKS's pod-identity webhook injects them only
when a pod is admitted. Existing control plane and storage node pods are restarted, for example, with
kubectl rollout restart, to pick up the role. Then the StorageCluster's backup store names ProviderChain instead
of a Secret:
spec:
backup:
endpoint: https://s3.<REGION>.amazonaws.com
bucket: <BUCKET_NAME>
region: <REGION>
credentials:
source: ProviderChain
No credentialsSecretRef, and no Secret, is needed anywhere in the namespace.
TLS Prerequisite
TLS is enabled by default and requires cert-manager, unless TLS is explicitly turned off. cert-manager is installed into the system node group before the Simplyblock Operator. For details, see Install Simplyblock Operator.
helm repo add jetstack https://charts.jetstack.io
helm install cert-manager jetstack/cert-manager \
-n cert-manager --create-namespace --set crds.enabled=true
Installation
On EKS, the installation follows the general procedure of installing the Simplyblock Operator and creating a storage cluster. Every simplyblock component has to be placed onto its node group and has to tolerate its taint.
A dedicated network interface for the storage traffic, a second ENI on each storage node, is described in Storage Network on Amazon EKS.
The examples on this page use the following labels and taints. They are examples and are replaced with the ones of the actual node groups.
| Node Group | Label | Taint |
|---|---|---|
| Control plane | sb-role=controlplane |
simplyblock.io/role=controlplane:NoSchedule |
| Storage | sb-role=storage-a |
storage.simplyblock.io/dedicated=true:NoSchedule |
| Clients | sb-role=client |
simplyblock.io/role=client:NoSchedule |
Helm Values
The placement is stated in the Helm values. The Simplyblock Operator and the CSI controller run on the untainted system node group and need no placement.
controlplane:
# StorageClass of the FoundationDB volumes; EKS has no default StorageClass.
storageclass:
name: ebs-gp3
nodeSelector:
create: true
key: sb-role
value: controlplane
tolerations:
create: true
list:
- key: simplyblock.io/role
operator: Equal
value: controlplane
effect: NoSchedule
prometheus:
server:
persistentVolume:
storageClass: ebs-gp3
nodeSelector:
sb-role: controlplane
tolerations:
- key: simplyblock.io/role
operator: Equal
value: controlplane
effect: NoSchedule
driver:
# The CSI node plugin must run on the tainted client nodes.
tolerations:
- operator: Exists
# The initial discovery run, restricted to the storage node group.
discovery:
enabled: true
name: cluster-a
nodeSelector:
sb-role: storage-a
tolerations:
- key: storage.simplyblock.io/dedicated
operator: Equal
value: "true"
effect: NoSchedule
helm install simplyblock-operator simplyblock/simplyblock-operator \
-n simplyblock --create-namespace -f values-eks.yaml
controlplane.nodeSelector and controlplane.tolerations place every control plane workload, including the
FoundationDB processes, onto the control plane node group. Prometheus is installed by its own subchart and is placed
with its own values.
The persistent volume claim template of Prometheus cannot be changed after the first installation. A release that was
installed without prometheus.server.persistentVolume.storageClass keeps a pending claim, which only a deletion of
the Prometheus StatefulSet and its claim clears.
Referring to the Taint During the Storage Cluster Deployment
A storage cluster is created from a discovery run, which writes a draft ClusterDeploymentConfig. The probe pods of
the run are pinned to their nodes, which bypasses the scheduler but not the taints. A run that does not tolerate the
taint of the storage node group therefore finds no workers.
The taint is stated once, in the tolerations of the discovery run. The run carries them into the draft
(spec.cluster.tolerations), and from there they reach the storage node DaemonSet of the cluster.
The First Storage Cluster
The initial discovery run is configured with the Helm values discovery.nodeSelector and discovery.tolerations
shown above. After the control plane becomes Available, the operator raises the run and writes the draft
discovered-<discovery.name>.
kubectl -n simplyblock get operatorops cluster-a -w
kubectl -n simplyblock get clusterdeploymentconfig
Additional Storage Clusters
Every further storage cluster gets its own node group and its own discovery run, an OperatorOps resource with the
action Discover.
apiVersion: storage.simplyblock.io/v1alpha2
kind: OperatorOps
metadata:
name: discover-cluster-b
namespace: simplyblock
spec:
action: Discover
discover:
configName: cluster-b
nodeSelector:
sb-role: storage-b
tolerations:
- key: storage.simplyblock.io/dedicated
operator: Equal
value: "true"
effect: NoSchedule
kubectl apply -f discover-cluster-b.yaml
kubectl -n simplyblock get operatorops discover-cluster-b -w
Reviewing and Approving the Draft
The draft lists the workers of the storage node group, their NVMe instance storage, and the tolerations of the run.
spec:
approved: false
cluster:
tolerations:
- effect: NoSchedule
key: storage.simplyblock.io/dedicated
operator: Equal
value: "true"
nodeSets:
- groups:
- devices:
nvme:
- 0000:00:1f.0
workers:
- ip-192-168-20-206.ec2.internal
- ip-192-168-4-223.ec2.internal
- ip-192-168-8-222.ec2.internal
The boot disk of an EKS node is an EBS volume and does not appear in the draft. After the review, the draft is approved, and the operator creates the storage cluster.
kubectl -n simplyblock patch clusterdeploymentconfig discovered-cluster-a \
--type=merge -p '{"spec":{"approved":true}}'
The review, the approval, and the verification of the cluster are described in detail in Create a Storage Cluster.
Verifying the Placement
kubectl -n simplyblock get pods -o wide
The FoundationDB, API, task, and monitoring pods run on the control plane nodes, the storage node pods run on the storage nodes, and a CSI node plugin pod runs on every client node.
On the client nodes, the volumes are attached with native NVMe multipathing. How to check it is described in Node Images.