This is an old revision of the document!
Table of Contents
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: hello labels: env: prod app: web tier: front spec: containers: - name: hello image: nginxdemos/hello ports: - containerPort: 80
Create/Delete yml configuration
kubectl apply -f pod.yml kubectl delete -f pod.yml