Find the installation instructions in below links:
cat project.env << EOF
export AWS_ACCESS_KEY_ID=<ACCESS key>
export AWS_SECRET_ACCESS_KEY=<Secret key>
export KOPS_STATE_STORE=s3://<S3 bucket name>
export CLUSTER_NAME= <clustername>.k8s.local
EOF
source project.env
kops create cluster --zones ap-south-1a $CLUSTER_NAME
kops edit cluster ${CLUSTER_NAME} kops update cluster ${CLUSTER_NAME} --yes
Cluster is starting. It should be ready in a few minutes.
Suggestions:
* validate cluster: kops validate cluster
* list nodes: kubectl get nodes --show-labels
* ssh to the master: ssh -i ~/.ssh/id_rsa [email protected]
* the admin user is specific to Debian. If not using Debian please use the appropriate user based on your OS.
* read about installing addons at: https://github.com/kubernetes/kops/blob/master/docs/addons.md.
kubectl config get-context
# kubectl config use-context <Cluster name>
kubectl get pod
kubectl get pod -n kube-system
kubectl apply -f <filename>
kubectl get pod (-n namespace if mentioned explicitly)
kubectl describe pod
#kubectl describe (object name)
kubectl explain deployment #or any object name
kubectl port-forward <podname> <localport>:<container port>
kubectl get pod -L KEY:VALUE #The selector query