Skip to content

Instantly share code, notes, and snippets.

@tataranovich
Created June 30, 2021 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tataranovich/af86e040b714ac34c96251c52c8bc627 to your computer and use it in GitHub Desktop.
Save tataranovich/af86e040b714ac34c96251c52c8bc627 to your computer and use it in GitHub Desktop.
Debug shell for Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: debug-shell
labels:
app: debug-shell
spec:
replicas: 1
selector:
matchLabels:
app: debug-shell
template:
metadata:
labels:
app: debug-shell
spec:
containers:
- name: debian
image: debian:10
command:
- bash
args:
- -c
- 'sleep 1d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment