Created
October 20, 2022 13:04
-
-
Save anilchalissery/fea92343b9a4ff4f566469f08d3645d3 to your computer and use it in GitHub Desktop.
To create eks cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: eksctl.io/v1alpha5 | |
kind: ClusterConfig | |
metadata: | |
name: dev | |
region: us-west-1 | |
version: "1.23" | |
#availabilityZones: ["us-west-1a", "us-west-1b"] | |
vpc: | |
subnets: | |
public: | |
us-west-1a: { id: subnet-00b99eae2a74a09df } | |
us-west-1c: { id: subnet-0d6dcb8887958179d } | |
cloudWatch: | |
clusterLogging: | |
# enable specific types of cluster control plane logs | |
enableTypes: ["all"] | |
# all supported types: "api", "audit", "authenticator", "controllerManager", "scheduler" | |
# supported special values: "*" and "all" | |
iam: | |
withOIDC: true | |
managedNodeGroups: | |
- name: cluster-worker | |
subnets: | |
- subnet-00b99eae2a74a09df | |
- subnet-0d6dcb8887958179d | |
minSize: 1 | |
maxSize: 4 | |
desiredCapacity: 1 | |
privateNetworking: true | |
instanceType: m5.large | |
labels: | |
arch: x86 | |
disk: none | |
noderole: spark | |
tags: | |
k8s.io/cluster-autoscaler/node-template/label/arch: x86 | |
k8s.io/cluster-autoscaler/node-template/label/kubernetes.io/os: linux | |
k8s.io/cluster-autoscaler/node-template/label/noderole: spark | |
k8s.io/cluster-autoscaler/node-template/label/disk: none | |
k8s.io/cluster-autoscaler/node-template/label/node-lifecycle: on-demand | |
k8s.io/cluster-autoscaler/node-template/label/topology.kubernetes.io/zone: us-west-1a | |
k8s.io/cluster-autoscaler/experiments: owned | |
k8s.io/cluster-autoscaler/enabled: "true" | |
iam: | |
withAddonPolicies: | |
ebs: true | |
fsx: true | |
efs: true | |
autoScaler: true | |
cloudWatch: true | |
attachPolicyARNs: | |
- arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy | |
- arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy | |
- arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment