EKSCluster Provider
The EKSCluster provider will automate the provisioning of an EKS cluster in AWS and will install the SD modules on top of it.
This document provides a through guidance about every aspect of the configuration file. You can find the reference schema for this provider here.
Prerequisites
Setup your AWS credentials by exporting the following environment variables:
export AWS_PROFILE=<YOUR_AWS_PROFILE_NAME>
If you don't have an AWS profile configured, you can create one by running the following command:
$ aws configure --profile <YOUR_AWS_PROFILE_NAME>
AWS Access Key ID [None]: <YOUR_AWS_ACCESS_KEY_ID>
AWS Secret Access Key [None]: <YOUR_AWS_SECRET_ACCESS_KEY>
Default region name [None]: <YOUR_AWS_REGION>
Default output format [None]: json
Configuration file creation
Create a configuration file with:
furyctl create config --kind EKSCluster --version <sd-version> --name <cluster-name>
Replace <sd-version> with the SD version that you want to install, for example v1.36.0. To see the versions that your furyctl supports, run furyctl get supported-versions.
This will create a new furyctl.yaml file with some default values. Read more to learn how to customize this file.
Note that the metadata.name parameter is the name of your cluster and it is used by furyctl to maintain the current status locally. It's not used by Kubernetes.
Spec section
The spec section of the furyctl.yaml file contains parameters that configure the overall behavior of furyctl for this cluster. The available options are:
spec.toolsConfiguration.terraform.state.s3section: this section defines where to store the terraform state files used by furyctl. The available parameters are:bucketName: this value defines which bucket will be used to store all the states.keyPrefix: this value defines which folder will be used to store all the states inside the bucket.region: this value defines in which region the bucket is.skipRegionValidation: this value defines if the region of the bucket should be validated or not by Terraform, useful when using a bucket in a recently added region.
spec.region: this value defines in which AWS region the cluster and all the related resources will be created.spec.tags: this map defines which will be the common tags that will be added to all the resources created on AWS.
spec.infrastructure section
This first section, infrastructure, defines the underlying network and eventual VPN bastions that will be provisioned.
If you already have a VPC, you can remove this key from the configuration file.
Available options are:
vpc.network: this key defines the VPC that will be created in AWS, with the following parameters:cidr: the CIDR of the VPC that will be created. Example:10.1.0.0/16.subnnetsCidrs.private: list of CIDRs for the private subnets, where the nodes, the pods, and the private load balancers will be created.subnnetsCidrs.public: list of CIDRs for the public subnets, where the public load balancers and the VPN servers will be created.
vpn: this object defines the creation of VPN bastions.bucketNamePrefix: this value defines the prefix that will be used to create the bucket name where the VPN servers will store the states.iamUserNameOverride: overrides the default IAM user name for the VPN.vpcId: the VPC ID where the VPN servers will be created, required only if.spec.infrastructure.vpcis omitted.instances: the number of instance to create,0to skip the creation.port: the port used by the OpenVPN server.instanceType: the size of the AWS ec2 instance, for examplet3.micro.diskSize: the size of the disk in GB.operatorName: the username of the account to create in the bastion's operating system.dhParamsBits: thedhParamsBitssize used for the creation of the.pemfile that will be used in the dh openvpnserver.conffile.vpnClientsSubnetCidr: The CIDR that will be used to assign IP addresses to the VPN clients when connected, for example172.16.0.0/16.ssh: ssh access settings. Available options:githubUsersName: the github user name list that will be used to get the ssh public key that will be added as authorized key to theoperatorNameuserallowedFromCidrs: the CIDR enabled in the security group that can access the bastions in SSH. To allow acces from anywhere, insert- 0.0.0.0/0.
spec.kubernetes section
This section describes how the EKS cluster will be created.
Inside the generated config file you will already find some guidance about the fields in the comments.
The required fields are:
vpcId: this value defines the VPC ID where the EKS cluster will be created, required only if.spec.infrastructure.vpcis omitted.subnetIds: this list defines the subnet IDs where the EKS cluster will be created, required only if.spec.infrastructure.vpcis omitted.nodeAllowedSshPublicKey: this key contains the ssh public key that can connect to the nodes via SSH using theec2-useruser.nodePoolsLaunchKind: eitherlaunch_configurations,launch_templatesorboth. For new clusters uselaunch_templates, for existing cluster you'll need to migrate fromlaunch_configurationstolaunch_templatesusingbothas interim.apiServer: this map defines the access to the Kubernetes API server.privateAccess: enables private access to the Kubernetes API.publicAccess: enables public access to the Kubernetes API.privateAccessCidrs: list of source CIDRs to enable private access from, set to- 0.0.0.0/0to enable access from every network.publicAccessCidrs: list of source CIDRs to enable public access from, set to- 0.0.0.0/0to enable access from every network.
nodePools: this array contains the definition of the nodepools in the cluster. The configuration for each group needs to have:name: this is the name of the nodepool.size.minandsize.max: the max and min number of nodes in the nodepool autoscaling group.instance: this map defines the characteristics of the instance that will be used in the node pool.type: the instance type, for examplet3.xlarge.spot: boolean to define if the instance is a spot instance.volumeSize: the instance disk size in GB.volumeType: the instance disk type, for examplegp2.
labels: Kubernetes labels that will be added to the nodestaints: Kubernetes taints that will be added to the nodestags: AWS tags that will be added to the ASG and EC2 instances. The example provided by default shows the labels needed by cluster autoscaler.
spec.distribution section
This section is dedicated to the configuration of the SD core modules to be installed inside the cluster.
As usual, in the default configuration file you will find some comments to guide you editing this section.
common.nodeSelector and common.tolerations
These parameters will be applied to every module. If you have labeled and/or tainted some nodes to host specifically SD modules, you can put your values here to avoid placing SD modules on all nodes.
spec.distribution.modules section
This section configures the SD core modules. The modules work in the same way in all the providers. See Configure the modules.