Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mjudeikis/725e814dd15164838b4a7d79ccc42974 to your computer and use it in GitHub Desktop.
Save mjudeikis/725e814dd15164838b4a7d79ccc42974 to your computer and use it in GitHub Desktop.
debug-container-centos
apiVersion: v1
kind: Pod
metadata:
labels:
run: foo
name: foo
namespace: default
spec:
containers:
- args:
- /bin/bash
image: centos
imagePullPolicy: IfNotPresent
name: foo
resources: {}
securityContext:
privileged: true
stdin: true
stdinOnce: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
volumeMounts:
- mountPath: /chroot
name: chroot
- mountPath: /run
name: run
- mountPath: /var/log
name: varlog
dnsPolicy: ClusterFirst
nodeSelector:
node-role.kubernetes.io/compute: "true"
priority: 0
restartPolicy: Never
schedulerName: default-scheduler
securityContext:
privileged: true
serviceAccount: default
serviceAccountName: default
volumes:
- name: chroot
hostPath:
# directory location on host
path: /
# this field is optional
type: Directory
- name: run
hostPath:
path: /run
- name: varlog
hostPath:
path: /var/log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment