Introduction
Start local cluster
minikube startCheck kubernetes version
kubectl versionCheck nodes
kubectl get nodesCreate a deployment using image primetimetran/micro-client
kubectl create deployment hello-world --image=primetimetran/micro-clientView status of deployments
kubectl get deploymentsOpen proxy to cluster from host
echo -e "\n\n\n\e[92mStarting Proxy. After starting it will not output a response. Please click the first Terminal Tab\n";kubectl proxyCheck if proxy allows access to cluster VPN via host machine
curl http://localhost:8001/versionView pod status
kubectl get podsSetup POD_NAME env variable to check namespace momentarily
export POD_NAME=curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/kubectl get podsView more detailed information about pods
kubectl describe podscurl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/proxy/View logs from pod
kubectl logs $POD_NAMEExecute commands on POD_NAME
kubectl exec $POD_NAME -- envOpen shell to POD_NAME
kubectl exec -ti $POD_NAME -- /bin/shExpose
k get pods
kubectl get services
Expose deployment deployment/hello-world on port 80 to host machine
kubectl expose deployment/hello-world --type="NodePort" --port 80