Skip to content

Instantly share code, notes, and snippets.

@toltarisa
Last active January 1, 2021 15:57
Show Gist options
  • Select an option

  • Save toltarisa/5f1ff3de7c66a2740603e62698c3b199 to your computer and use it in GitHub Desktop.

Select an option

Save toltarisa/5f1ff3de7c66a2740603e62698c3b199 to your computer and use it in GitHub Desktop.

kubectl apply commands in order

kubectl apply -f mongo-secret.yaml
kubectl apply -f mongo.yaml
kubectl apply -f mongo-configmap.yaml 
kubectl apply -f mongo-express.yaml

kubectl get commands

kubectl get pod
kubectl get pod --watch
kubectl get pod -o wide
kubectl get service
kubectl get secret
kubectl get all | grep mongodb

kubectl debugging commands

kubectl describe pod mongodb-deployment-xxxxxx
kubectl describe service mongodb-service
kubectl logs mongo-express-xxxxxx

give a URL to external service in minikube

minikube service mongo-express-service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment