Created
October 29, 2023 01:09
-
-
Save markscottwright/3071f80ff026cfe317eec69099b000b1 to your computer and use it in GitHub Desktop.
Debug kubernetes pod
This file contains hidden or 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
cat <<EOF | kubectl apply -f - | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ubuntu | |
labels: | |
app: ubuntu | |
spec: | |
containers: | |
- image: ubuntu | |
command: | |
- "sleep" | |
- "604800" | |
imagePullPolicy: IfNotPresent | |
name: ubuntu | |
restartPolicy: Always | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment