This is an old revision of the document!


Minikube

minikube start --vm-driver=virtualbox
minikube [start|stop|delete|status]
minikube start --cpus 4

Cluster Info

kubectl version --client
kubectl cluster-info
kubectl get nodes
kubectl get pods --all-namespaces

Run

kubectl run hello --image=nginxdemos/hello --port=80
kubectl delete pods hello
kubectl describe pods hello
kubectl exec -it hello -- sh
kubectl logs hello
kubectl port-forward hello 8888:80

Configuration

pod.yml
apiVersion: v1
kind: Pod
metadata:
  name: test
  labels:
    env: prod
    app: web
    tier: front
spec:
  containers:
    - name: hello
      image: nginxdemos/hello
      ports:
        - containerPort: 80
Navigation
Print/export
QR Code
QR Code wiki:kubernetes (generated for current page)