Skip to content

Instantly share code, notes, and snippets.

@markscottwright
Created October 29, 2023 01:09
Show Gist options
  • Save markscottwright/3071f80ff026cfe317eec69099b000b1 to your computer and use it in GitHub Desktop.
Save markscottwright/3071f80ff026cfe317eec69099b000b1 to your computer and use it in GitHub Desktop.
Debug kubernetes pod
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