Skip to content

Instantly share code, notes, and snippets.

@tosone
Created August 29, 2019 02:40
Show Gist options
  • Save tosone/86d926657fe7ecba03814854b1b2a155 to your computer and use it in GitHub Desktop.
Save tosone/86d926657fe7ecba03814854b1b2a155 to your computer and use it in GitHub Desktop.
[K8s]
kubectl get namespaces
kubectl get pods --namespace uaa
kubectl get pods --namespace scf
kubectl get pods --namespace stratos
kubectl describe pods uaa-0 --namespace uaa
kubectl describe pods router-0 --namespace scf
kubectl logs -f --namespace uaa uaa-0 uaa
kubectl logs -f --namespace stratos stratos-0 ui
kubectl exec --namespace uaa -it uaa-0 uaa bash
kubectl exec --namespace stratos -it stratos-0 -c ui bash
kubectl exec --namespace scf -it router-0 -c router bash
kubectl exec --namespace scf -it adapter-0 -c adapter bash
kubectl exec --namespace scf -it api-group-0 -c api-group bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment