kubectl run nginx --image=nginx:1.10.0
kubectl get pods
kubectl expose deployment nginx --port 80 --type LoadBalancer
kubectl get services
kubectl create -f pods/nginx.yaml
kubectl describe pods nginx
kubectl port-forward nginx LOCAL_PORT:PORT_IN_POD
kubectl logs -f nginx
kubectl exec nginx --stdin --tty -c nginx /bin/sh
Type exit
to logout from the interactive shell
kubectl create secret generic SECRET_NAME --from-file=DIRECTORY/
kubectl describe secret SECRET_NAME
kubectl create configmap CONFIGMAP_NAME --from-file=DIRECTORY/FILE
kubectl describe configmap CONFIGMAP_NAME
kubectl label pods POD_NAME "LABEL_NAME=VALUE"