Useful commands

Pods

Get pods :

kubectl get po
kubectl get po --all-namespaces or kubectl get po -A
kubectl get po -n NAMESPACE

Get more info :

kubectl describe po/PODNAME 
kubectl logs -f PODNAME
kubectl exec -it PODNAME -- bash

Delete pod : kubectl del po/PODNAME

A bit of automation

Delete all completed pod : kubectl get po|awk '/Completed/ {print "kubectl delete po/"$1;}'| bash

Bash alias to change easily namespace :

namespace() {
  kubectl config set-context YOURCONTEXT --namespace $1
}

To use it : namespace NAMESPACENAME

Nodes

Get nodes : kubectl get nodes
With more infos (tags etc) : kubectl get nodes --show-labels

Information for a specific nodes : kubectl describe nodes/NODENAME
Delete a node : kubectl del nodes/NODENAME

Installation of kubernetes

The better way to understand installation of kubernetes is with the hard way in my opinion.
It’s really a great tutorial and well done.