You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubectl run kubernetes-bootcamp \
--image=docker.io/jocatalin/kubernetes-bootcamp:v1 \
--port=8080
kubectl get deployments
View our app
kubectl proxy
export POD_NAME=$(kubectl get pods -o go-template \ --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')echo Name of the Pod: $POD_NAME
curl http://localhost:8001/api/v1/proxy/namespaces/default/pods/$POD_NAME/proxy/
3. Explore Your App
Check application configuration
kubectl get pods
kubectl describe pods
Show the app in the terminal
kubectl proxy
export POD_NAME=$(kubectl get pods -o go-template \ --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')echo Name of the Pod: $POD_NAME
curl http://localhost:8001/api/v1/proxy/namespaces/default/pods/$POD_NAME/
kubectl scale deployments/kubernetes-bootcamp --replicas=2
kubectl get deployments
kubectl get pods -o wide
6. Update Your App
Update the version of the app
kubectl get deployments
kubectl get pods
kubectl describe pods
kubectl set image deployments/kubernetes-bootcamp \
kubernetes-bootcamp=jocatalin/kubernetes-bootcamp:v2
kubectl get pods