- Information
- AI Chat
Was this document helpful?
KOPS Cluster Creation - done
Subject: Computer Science
835 Documents
Students shared 835 documents in this course
Level:
Standard
Was this document helpful?
KOPS CLUSTER CREATION
export CLUSTER_NAME=k8sb23.xyz #Change This
export AWS_REGION=us-east-1 #Change This Unless you dont use us-east-1
export NAME=k8sb23.xyz #Change This
export KOPS_STATE_STORE=s3://k8sb23xyz #Change This
3-Node-Cluster:
kops create cluster --name=k8sb27.xyz --state=s3://k8sb27.xyz \
--zones=us-east-1a,us-east-1b,us-east-1c --node-count=3 --control-plane-count=1 \
--node-size=t3.medium --control-plane-size=t3.medium --control-plane-zones=us-east-1a \
--control-plane-volume-size 10 --node-volume-size 10 --ssh-public-key ~/.ssh/id_rsa.pub \
--dns-zone=k8sb27.xyz --networking calico --yes
To download kubeconfig to /root/.kube/config
kops export kubeconfig k8sb23.xyz --admin
2-Node-Cluster:
kops create cluster --name=k8sb23.xyz --state=s3://k8sb23xyz \
--zones=us-east-1a,us-east-1b --node-count=2 --master-count=1 \
--node-size=t3.medium --master-size=t3.medium --master-zones=us-east-1a \
--master-volume-size 10 --node-volume-size 10 --ssh-public-key ~/.ssh/id_rsa.pub \
--dns-zone=k8sb23.xyz --networking calico --yes
1-Node-Cluster:
kops create cluster --name=k8sb23.xyz --state=s3://k8sb23xyz \
--zones=us-east-1a --node-count=1 --master-count=1 \
--node-size=t3.medium --master-size=t3.medium --master-zones=us-east-1a \
--master-volume-size 10 --node-volume-size 10 --ssh-public-key ~/.ssh/id_rsa.pub \
--dns-zone=k8sb23.xyz --networking calico --yes