Created
May 26, 2017 22:31
-
-
Save allthingsclowd/6c2b49f14c7222596251d8cf35857c4a to your computer and use it in GitHub Desktop.
Useful Kubernetes Commands for Fujitsu K5 Kubernetes Deployment Stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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