Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created March 4, 2019 21:42
Show Gist options
  • Save rms1000watt/eb281dd574102dc1f0bb88cd6d762c69 to your computer and use it in GitHub Desktop.
Save rms1000watt/eb281dd574102dc1f0bb88cd6d762c69 to your computer and use it in GitHub Desktop.
Kubernetes shell in cluster
#!/usr/bin/env bash
kubectl create -f https://k8s.io/examples/application/shell-demo.yaml
kubectl get pod shell-demo
kubectl exec -it shell-demo -- /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment