Skip to content

Instantly share code, notes, and snippets.

@ianlintner
Created February 20, 2023 17:22
Show Gist options
  • Save ianlintner/949b3daff3743ff829eed6f138a8604a to your computer and use it in GitHub Desktop.
Save ianlintner/949b3daff3743ff829eed6f138a8604a to your computer and use it in GitHub Desktop.
Kubernetes Pod with Service Account for Troubleshooting
# Run locally to start
kubectl apply -f adhoc.yaml
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-troubleshooting
namespace: convai
spec:
serviceAccountName: some-service-account
containers:
- name: ubuntu
image: ubuntu:latest
# Just spin & wait forever
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment