Skip to content

Instantly share code, notes, and snippets.

@allthingsclowd
Created May 26, 2017 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allthingsclowd/6c2b49f14c7222596251d8cf35857c4a to your computer and use it in GitHub Desktop.
Save allthingsclowd/6c2b49f14c7222596251d8cf35857c4a to your computer and use it in GitHub Desktop.
Useful Kubernetes Commands for Fujitsu K5 Kubernetes Deployment Stack
# check version
kubectl version
# list kube nodes
kubectl get nodes
# list pods
kubectl get pods --all-namespaces
# check docker
sudo docker ps
# deploy demo application
kubectl create -f "https://github.com/microservices-demo/microservices-demo/blob/master/deploy/kubernetes/complete-demo.yaml?raw=true"
# check application status
kubectl get pod --namespace=sock-shop
# view the application service
kubectl describe svc front-end -n sock-shop
# delete demo application
kubectl delete -f "https://github.com/microservices-demo/microservices-demo/blob/master/deploy/kubernetes/complete-demo.yaml?raw=true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment