# Check environment
minikube version
kubectl version
# start a new cluster
minikube start
# view the cluster details
kubectl cluster-info
# show all nodes that can be used to host the applications
kubectl get nodes
Deploy app
kubectl run kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1 --port=8080
Get deployment
kubectl get deployments
Build a connection between the host and the kubernetes cluster
kubectl proxy
Get pod name
kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'
export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
Send a request to the application running in the pod
Using minikube to create and run a cluster
Deploy app
Get deployment
Build a connection between the host and the kubernetes cluster
Get pod name
Send a request to the application running in the pod