Skip to content

Instantly share code, notes, and snippets.

@georgegoh
Last active March 3, 2021 06:49
Show Gist options
  • Save georgegoh/4d4f839e0e7edfebc261f5c3b354f147 to your computer and use it in GitHub Desktop.
Save georgegoh/4d4f839e0e7edfebc261f5c3b354f147 to your computer and use it in GitHub Desktop.
Run a deploy pod - to attach `kubectl attach -i debug`
apiVersion: v1
kind: Pod
metadata:
labels:
run: debug
name: debug
namespace: default
spec:
containers:
- args:
- sh
image: busybox
imagePullPolicy: Always
name: debug
resources: {}
stdin: true
stdinOnce: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
volumeMounts: []
dnsPolicy: ClusterFirst
restartPolicy: Never
volumes: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment