Skip to content

Instantly share code, notes, and snippets.

@zolo2hin
Last active March 22, 2021 14:52
Show Gist options
  • Save zolo2hin/da74cb3f1ee166ee78e3defae6d11169 to your computer and use it in GitHub Desktop.
Save zolo2hin/da74cb3f1ee166ee78e3defae6d11169 to your computer and use it in GitHub Desktop.
# Get pods in namespace
kubectl get pods -n rest
# SSH Pod
kubectl exec --stdin -n rest --tty pod-name -- /bin/sh
# установить my-cluster-name как контекст по умолчанию
kubectl config use-context my-cluster-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment