Skip to main content
Version: 1.34.3

This page comes from sighupio/distribution: docs/schemas/ekscluster-kfd-v1alpha2.md (v1.34.3). To change it, change the source.

EKSCluster: .spec.kubernetes

This page is part of the EKSCluster schema reference.

.spec.kubernetes​

Properties​

PropertyTypeRequired
apiServerobjectRequired
awsAuthobjectOptional
clusterIAMRoleNamePrefixOverridestringOptional
logRetentionDaysintegerOptional
logsTypesarrayOptional
nodeAllowedSshPublicKeyobjectRequired
nodePoolGlobalAmiTypestringRequired
nodePoolsarrayRequired
nodePoolsCommonobjectOptional
nodePoolsLaunchKindstringRequired
serviceIpV4CidrstringOptional
subnetIdsarrayOptional
vpcIdstringOptional
workersIAMRoleNamePrefixOverridestringOptional

Description​

Defines the Kubernetes components configuration and the values needed for the kubernetes phase of furyctl.

.spec.kubernetes.apiServer​

Properties​

PropertyTypeRequired
privateAccessbooleanRequired
privateAccessCidrsarrayOptional
publicAccessbooleanRequired
publicAccessCidrsarrayOptional

.spec.kubernetes.apiServer.privateAccess​

Description​

This value defines if the Kubernetes API server will be accessible from the private subnets. Default it true.

.spec.kubernetes.apiServer.privateAccessCidrs​

Description​

The network CIDRs from the private subnets that will be allowed access the Kubernetes API server.

Constraints​

pattern: the string must match the following regular expression:

^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\/(3[0-2]|[1-2][0-9]|[0-9])$

try pattern

.spec.kubernetes.apiServer.publicAccess​

Description​

This value defines if the Kubernetes API server will be accessible from the public subnets. Default is false.

.spec.kubernetes.apiServer.publicAccessCidrs​

Description​

The network CIDRs from the public subnets that will be allowed access the Kubernetes API server.

Constraints​

pattern: the string must match the following regular expression:

^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\/(3[0-2]|[1-2][0-9]|[0-9])$

try pattern

.spec.kubernetes.awsAuth​

Properties​

PropertyTypeRequired
additionalAccountsarrayOptional
rolesarrayOptional
usersarrayOptional

Description​

Optional additional security configuration for EKS IAM via the aws-auth configmap.

Ref: https://docs.aws.amazon.com/eks/latest/userguide/auth-configmap.html

.spec.kubernetes.awsAuth.additionalAccounts​

Description​

This optional array defines additional AWS accounts that will be added to the aws-auth configmap.

.spec.kubernetes.awsAuth.roles​

Properties​

PropertyTypeRequired
groupsarrayRequired
rolearnstringRequired
usernamestringRequired

Description​

This optional array defines additional IAM roles that will be added to the aws-auth configmap.

.spec.kubernetes.awsAuth.roles.groups​

.spec.kubernetes.awsAuth.roles.rolearn​

Constraints​

pattern: the string must match the following regular expression:

^arn:(?P<Partition>[^:\n]*):(?P<Service>[^:\n]*):(?P<Region>[^:\n]*):(?P<AccountID>[^:\n]*):(?P<Ignore>(?P<ResourceType>[^:\/\n]*)[:\/])?(?P<Resource>.*)$

try pattern

.spec.kubernetes.awsAuth.roles.username​

.spec.kubernetes.awsAuth.users​

Properties​

PropertyTypeRequired
groupsarrayRequired
userarnstringRequired
usernamestringRequired

Description​

This optional array defines additional IAM users that will be added to the aws-auth configmap.

.spec.kubernetes.awsAuth.users.groups​

.spec.kubernetes.awsAuth.users.userarn​

Constraints​

pattern: the string must match the following regular expression:

^arn:(?P<Partition>[^:\n]*):(?P<Service>[^:\n]*):(?P<Region>[^:\n]*):(?P<AccountID>[^:\n]*):(?P<Ignore>(?P<ResourceType>[^:\/\n]*)[:\/])?(?P<Resource>.*)$

try pattern

.spec.kubernetes.awsAuth.users.username​

.spec.kubernetes.clusterIAMRoleNamePrefixOverride​

Description​

Overrides the default prefix for the IAM role name of the EKS cluster. If not set, a name will be generated from the cluster name.

Constraints​

pattern: the string must match the following regular expression:

^[a-zA-Z0-9+=,.@_-]{1,38}$

try pattern

.spec.kubernetes.logRetentionDays​

Description​

Optional Kubernetes Cluster log retention in CloudWatch, expressed in days. Setting the value to zero (0) makes retention last forever. Default is 90 days.

Constraints​

enum: the value of this property must be equal to one of the following integer values:

Value
0
1
3
5
7
14
30
60
90
120
150
180
365
400
545
731
1096
1827
2192
2557
2922
3288
3653

.spec.kubernetes.logsTypes​

Description​

Optional list of Kubernetes Cluster log types to enable. Defaults to all types.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"api"
"audit"
"authenticator"
"controllerManager"
"scheduler"

.spec.kubernetes.nodeAllowedSshPublicKey​

Description​

The SSH public key that can connect to the nodes via SSH using the ec2-user user. Example: the contents of your ~/.ssh/id_ras.pub file.

.spec.kubernetes.nodePoolGlobalAmiType​

Description​

Global default AMI type used for EKS worker nodes. This will apply to all node pools unless overridden by a specific node pool. Only Amazon Linux 2023 (alinux2023) images are supported.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"alinux2023"

.spec.kubernetes.nodePools​

Properties​

PropertyTypeRequired
additionalFirewallRulesobjectOptional
amiobjectOptional
attachedTargetGroupsarrayOptional
containerRuntimestringOptional
instanceobjectRequired
labelsobjectOptional
namestringRequired
sizeobjectRequired
subnetIdsarrayOptional
tagsobjectOptional
taintsarrayOptional
typestringRequired

Description​

Array with all the node pool definitions that will join the cluster. Each item is an object.

.spec.kubernetes.nodePools.additionalFirewallRules​

Properties​

PropertyTypeRequired
cidrBlocksarrayOptional
selfarrayOptional
sourceSecurityGroupIdarrayOptional

Description​

Optional additional firewall rules that will be attached to the nodes.

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks​

Properties​

PropertyTypeRequired
cidrBlocksarrayRequired
namestringRequired
portsobjectRequired
protocolstringRequired
tagsobjectOptional
typestringRequired

Description​

The CIDR blocks objects definition for the Firewall rule.

Constraints​

minimum number of items: the minimum number of items for this array is: 1

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks.cidrBlocks​

Constraints​

minimum number of items: the minimum number of items for this array is: 1

pattern: the string must match the following regular expression:

^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\/(3[0-2]|[1-2][0-9]|[0-9])$

try pattern

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks.name​

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks.ports​

Properties​

PropertyTypeRequired
fromintegerRequired
tointegerRequired

Description​

Port range for the Firewall Rule.

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks.ports.from​

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks.ports.to​

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks.protocol​

Constraints​

pattern: the string must match the following regular expression:

^(?i)(tcp|udp|icmp|icmpv6|-1)$

try pattern

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks.tags​

Description​

Additional AWS tags for the Firewall rule.

.spec.kubernetes.nodePools.additionalFirewallRules.cidrBlocks.type​

Description​

The type of the Firewall rule, can be ingress for incoming traffic or egress for outgoing traffic.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"ingress"
"egress"

.spec.kubernetes.nodePools.additionalFirewallRules.self​

Properties​

PropertyTypeRequired
namestringRequired
portsobjectRequired
protocolstringRequired
selfbooleanRequired
tagsobjectOptional
typestringRequired

Description​

The self objects definition for the Firewall rule.

Constraints​

minimum number of items: the minimum number of items for this array is: 1

.spec.kubernetes.nodePools.additionalFirewallRules.self.name​

Description​

The name of the Firewall rule.

.spec.kubernetes.nodePools.additionalFirewallRules.self.ports​

Properties​

PropertyTypeRequired
fromintegerRequired
tointegerRequired

Description​

Port range for the Firewall Rule.

.spec.kubernetes.nodePools.additionalFirewallRules.self.ports.from​

.spec.kubernetes.nodePools.additionalFirewallRules.self.ports.to​

.spec.kubernetes.nodePools.additionalFirewallRules.self.protocol​

Description​

The protocol of the Firewall rule.

Constraints​

pattern: the string must match the following regular expression:

^(?i)(tcp|udp|icmp|icmpv6|-1)$

try pattern

.spec.kubernetes.nodePools.additionalFirewallRules.self.self​

Description​

If true, the source will be the security group itself.

.spec.kubernetes.nodePools.additionalFirewallRules.self.tags​

Description​

Additional AWS tags for the Firewall rule.

.spec.kubernetes.nodePools.additionalFirewallRules.self.type​

Description​

The type of the Firewall rule, can be ingress for incoming traffic or egress for outgoing traffic.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"ingress"
"egress"

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId​

Properties​

PropertyTypeRequired
namestringRequired
portsobjectRequired
protocolstringRequired
sourceSecurityGroupIdstringRequired
tagsobjectOptional
typestringRequired

Description​

The Source Security Group ID objects definition for the Firewall rule.

Constraints​

minimum number of items: the minimum number of items for this array is: 1

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId.name​

Description​

The name for the additional Firewall rule Security Group.

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId.ports​

Properties​

PropertyTypeRequired
fromintegerRequired
tointegerRequired

Description​

Port range for the Firewall Rule.

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId.ports.from​

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId.ports.to​

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId.protocol​

Description​

The protocol of the Firewall rule.

Constraints​

pattern: the string must match the following regular expression:

^(?i)(tcp|udp|icmp|icmpv6|-1)$

try pattern

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId.sourceSecurityGroupId​

Description​

The source security group ID.

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId.tags​

Description​

Additional AWS tags for the Firewall rule.

.spec.kubernetes.nodePools.additionalFirewallRules.sourceSecurityGroupId.type​

Description​

The type of the Firewall rule, can be ingress for incoming traffic or egress for outgoing traffic.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"ingress"
"egress"

.spec.kubernetes.nodePools.ami​

Properties​

PropertyTypeRequired
idstringOptional
ownerstringOptional
typestringOptional

Description​

Configuration for customize the Amazon Machine Image (AMI) for the machines of the Node Pool.

The AMI can be chosen either by specifing the ami.id and ami.owner fields for using a custom AMI (just with self-managed node pool type) or by setting the ami.type field to one of the official AMIs based on Amazon Linux.

.spec.kubernetes.nodePools.ami.id​

Description​

The ID of the AMI to use for the nodes, must be set toghether with the owner field. ami.id and ami.owner can be only set when Node Pool type is self-managed and they can't be set at the same time than ami.type.

.spec.kubernetes.nodePools.ami.owner​

Description​

The owner of the AMI to use for the nodes, must be set toghether with the id field. ami.id and ami.owner can be only set when Node Pool type is self-managed and they can't be set at the same time than ami.type.

.spec.kubernetes.nodePools.ami.type​

Description​

The AMI type defines the AMI to use for eks-managed and self-managed type of Node Pools. Only Amazon Linux based AMIs are supported. For Kubernetes versions 1.33 and later, EKS will not provide pre-built optimized Amazon Linux 2 (alinux2). Only Amazon Linux 2023 (alinux2023) images are supported. It can't be set at the same time than ami.id and ami.owner.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"alinux2023"

.spec.kubernetes.nodePools.attachedTargetGroups​

Description​

This optional array defines additional target groups to attach to the instances in the node pool.

Constraints​

pattern: the string must match the following regular expression:

^arn:(?P<Partition>[^:\n]*):(?P<Service>[^:\n]*):(?P<Region>[^:\n]*):(?P<AccountID>[^:\n]*):(?P<Ignore>(?P<ResourceType>[^:\/\n]*)[:\/])?(?P<Resource>.*)$

try pattern

.spec.kubernetes.nodePools.containerRuntime​

Description​

The container runtime to use in the nodes of the node pool. Default is containerd.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"docker"
"containerd"

.spec.kubernetes.nodePools.instance​

Properties​

PropertyTypeRequired
maxPodsintegerOptional
spotbooleanOptional
typestringRequired
volumeSizeintegerOptional
volumeTypestringOptional

Description​

Configuration for the instances that will be used in the node pool.

.spec.kubernetes.nodePools.instance.maxPods​

Description​

Set the maximum pods per node to a custom value. If not set will use EKS default value that depends on the instance type.

Ref: https://github.com/awslabs/amazon-eks-ami/blob/main/templates/shared/runtime/eni-max-pods.txt

.spec.kubernetes.nodePools.instance.spot​

Description​

If true, the nodes will be created as spot instances. Default is false.

.spec.kubernetes.nodePools.instance.type​

Description​

The instance type to use for the nodes.

.spec.kubernetes.nodePools.instance.volumeSize​

Description​

The size of the disk in GB.

.spec.kubernetes.nodePools.instance.volumeType​

Description​

Volume type for the instance disk. Default is gp2.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"gp2"
"gp3"
"io1"
"standard"

.spec.kubernetes.nodePools.labels​

Description​

Kubernetes labels that will be added to the nodes.

.spec.kubernetes.nodePools.name​

Description​

The name of the node pool.

.spec.kubernetes.nodePools.size​

Properties​

PropertyTypeRequired
maxintegerRequired
minintegerRequired

.spec.kubernetes.nodePools.size.max​

Description​

The maximum number of nodes in the node pool.

.spec.kubernetes.nodePools.size.min​

Description​

The minimum number of nodes in the node pool.

.spec.kubernetes.nodePools.subnetIds​

Description​

Optional list of subnet IDs where to create the nodes.

Constraints​

pattern: the string must match the following regular expression:

^subnet\-[0-9a-f]{17}$

try pattern

.spec.kubernetes.nodePools.tags​

Description​

AWS tags that will be added to the ASG and EC2 instances.

.spec.kubernetes.nodePools.taints​

Constraints​

pattern: the string must match the following regular expression:

^([a-zA-Z0-9\-\.\/]+)=([^-][\w-]+):(NoSchedule|PreferNoSchedule|NoExecute)$

try pattern

.spec.kubernetes.nodePools.type​

Description​

The type of Node Pool, can be self-managed for using customization like custom AMI, set max pods per node or eks-managed for using prebuilt AMIs from Amazon via the ami.type field. It is recommended to use self-managed.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"eks-managed"
"self-managed"

.spec.kubernetes.nodePoolsCommon​

Properties​

PropertyTypeRequired
metadataHttpEndpointstringOptional
metadataHttpPutResponseHopLimitintegerOptional
metadataHttpTokensstringOptional

Description​

Default properties to set for all self-managed and eks-managed node pools. Currently only IMDS properties are supported.

.spec.kubernetes.nodePoolsCommon.metadataHttpEndpoint​

Description​

Specifies whether the instance metadata service (IMDS) is enabled or disabled. When set to 'disabled', instance metadata is not accessible.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"enabled"
"disabled"

.spec.kubernetes.nodePoolsCommon.metadataHttpPutResponseHopLimit​

Description​

Specifies the maximum number of network hops allowed for instance metadata PUT response packets. This helps control access to instance metadata across different network layers.

.spec.kubernetes.nodePoolsCommon.metadataHttpTokens​

Description​

Defines whether the use of IMDS session tokens is required. When set to 'required', all metadata requests must include a valid session token.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"optional"
"required"

.spec.kubernetes.nodePoolsLaunchKind​

Description​

Accepted values are launch_configurations, launch_templates or both. For new clusters use launch_templates, for adopting an existing cluster you'll need to migrate from launch_configurations to launch_templates using both as interim.

Constraints​

enum: the value of this property must be equal to one of the following string values:

Value
"launch_configurations"
"launch_templates"
"both"

.spec.kubernetes.serviceIpV4Cidr​

Description​

This value defines the network CIDR that will be used to assign IP addresses to Kubernetes services.

Constraints​

pattern: the string must match the following regular expression:

^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\/(3[0-2]|[1-2][0-9]|[0-9])$

try pattern

.spec.kubernetes.subnetIds​

Description​

Required only if .spec.infrastructure.vpc is omitted. This value defines the ID of the subnet where the EKS cluster will be created.

Constraints​

pattern: the string must match the following regular expression:

^subnet\-[0-9a-f]{17}$

try pattern

.spec.kubernetes.vpcId​

Description​

Required only if .spec.infrastructure.vpc is omitted. This value defines the ID of the VPC where the EKS cluster and its related resources will be created.

Constraints​

pattern: the string must match the following regular expression:

^vpc\-([0-9a-f]{8}|[0-9a-f]{17})$

try pattern

.spec.kubernetes.workersIAMRoleNamePrefixOverride​

Description​

Overrides the default prefix for the IAM role name of the EKS workers. If not set, a name will be generated from the cluster name.

Constraints​

pattern: the string must match the following regular expression:

^[a-zA-Z0-9+=,.@_-]{1,38}$

try pattern