Skip to content

Kubernetes Notes

Commands

  • kubectl cluster-info
  • kubectl get nodes
  • kubectl get pods
  • kubectl describe pods
  • kubectl run kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1 --port=8080
  • kubectl get deployments
  • kubectl proxy (in a second window)
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
minikube start --memory=16384 --cpus=4 --kubernetes-version=v1.16.0

minikube dashboard

# Launch etcd with: https://github.com/etcd-io/etcd/tree/master/hack/kubernetes-deploy
cd ~/git/etcd/hack/kubernetes-deploy
kubectl create -f etcd.yml



cd ~/istio-home
for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done

# Permissive mutual TLS
kubectl apply -f install/kubernetes/istio-demo.yaml