[Cluster]
● EXAMPLE 1:- Create a cluster in AWS in a single zone
$ kops create cluster --name=k8s-cluster.example.com --state=s3://my-state-store --zones=us-east-1a --node-count=2
● EXAMPLE 2:- Create a cluster
$ export KOPS_STATE_STORE="s3://my-state-store"
$ export ZONES="us-east-1a"
$ kops create cluster k8s-cluster.example.com --cloud aws --zones $ZONES --master-zones $ZONES --node-count 3 --yes
$ kops create cluster k8s-cluster.example.com --cloud aws --zones $ZONES --control-plane-zones $ZONES --node-count 3 --yes
● EXAMPLE 3:- Create a cluster in AWS with High Availability
$ export KOPS_STATE_STORE="s3://my-state-store"
$ export MASTER_SIZE="c5.large"
$ export NODE_SIZE="m5.large"
$ export ZONES="us-east-1a,us-east-1b,us-east-1c"
$ kops create cluster k8s-cluster.example.com --node-count 3 --zones $ZONES --node-size $NODE_SIZE --master-size $MASTER_SIZE --master-zones $ZONES --networking cilium --bastion="true" --yes
$ kops create cluster k8s-cluster.example.com --node-count 3 --zones $ZONES --node-size $NODE_SIZE --control-plane-size $MASTER_SIZE --control-plane-zones $ZONES --networking cilium --topology private --bastion="true" --yes
● EXAMPLE 4:- Generate a cluster spec to apply later
$ kops create cluster --name=k8s-cluster.example.com --state=s3://my-state-store --zones=us-east-1a --node-count=2 --dry-run -o yaml > filename.yaml
$ kops create -f filename.yaml
● EXAMPLE 6:-
$ export KOPS_CLUSTER_NAME=javahome.in
$ export KOPS_STATE_STORE=s3://javahome.in.k8s
$ kops create cluster --name=${KOPS_CLUSTER_NAME} --state=${KOPS_STATE_STORE} --master-size=t3.medium --master-count 1 --node-size=t3.medium --node-count=2 --zones=ap-south-1a,ap-south-1b --dns private
$ kops create cluster --name=${KOPS_CLUSTER_NAME} --state=${KOPS_STATE_STORE} --control-plane-size=t3.medium --control-plane-count 1 --node-size=t3.medium --node-count=2 --zones=ap-south-1a,ap-south-1b --dns private
● EXAMPLE 16:-
$ kops create cluster --name=demok8scluster.k8s.local --state=s3://kops-abhi-storage --zones=us-east-1a --node-count=1 --node-size=t2.micro --master-size=t2.micro  --master-volume-size=8 --node-volume-size=8
$ kops create cluster --name=demok8scluster.k8s.local --state=s3://kops-abhi-storage --zones=us-east-1a --node-count=1 --node-size=t2.micro --control-plane-size=t2.micro  --control-plane-volume-size=8 --node-volume-size=8

[Edit]
$ kops edit cluster $NAME
$ kops edit cluster ${NAME}

[Update]
$ kops update cluster $NAME
$ kops update cluster $NAME --yes
$ kops update cluster ${NAME} --yes

[Upgrade]
$ kops upgrade cluster $NAME
$ kops upgrade cluster $NAME --yes

[Rolling Update]
$ kops rolling-update cluster --master-interval=1m --node-interval=1m --yes
$ kops rolling-update cluster --control-plane-interval=1m --node-interval=1m --yes
$ kops rolling-update cluster $NAME
$ kops rolling-update cluster $NAME --yes

[Delete]
$ kops delete cluster --name ${NAME}
$ kops delete cluster --name ${NAME} --yes
$ kops delete cluster $NAME --yes
$ kops delete cluster ${NAME} --yes
