Created
February 20, 2023 17:22
-
-
Save ianlintner/949b3daff3743ff829eed6f138a8604a to your computer and use it in GitHub Desktop.
Kubernetes Pod with Service Account for Troubleshooting
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
# Run locally to start | |
kubectl apply -f adhoc.yaml |
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
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