Skip to content

Instantly share code, notes, and snippets.

@bowei
Created August 4, 2020 17:23
Show Gist options
  • Save bowei/4ed55aedc947f1deaf3602caa023d486 to your computer and use it in GitHub Desktop.
Save bowei/4ed55aedc947f1deaf3602caa023d486 to your computer and use it in GitHub Desktop.
deploy.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: debug-vm
namespace: default
labels:
k8s-app: debug-vm
spec:
selector:
matchLabels:
name: debug-vm
template:
metadata:
labels:
name: debug-vm
spec:
nodeSelector:
debug-vm: "true"
hostNetwork: true
hostPID: true
containers:
- name: main
image: gcr.io/bowei-gke/debug-vm:0.2
imagePullPolicy: Always
command: ["/run.sh"]
args: []
env:
- name: VERSION
value: "0"
- name: ftraceMode
value: ""
- name: maxFtraces
value: "0"
- name: enableSysRq
value: "n"
- name: reduceKernelHungTimeout
value: "n"
securityContext:
privileged: true
procMount: Unmasked
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 200m
memory: 200Mi
volumeMounts:
- name: journal
mountPath: /run/systemd/journal
- name: hostdev
mountPath: /hostdev
- name: hostvar
mountPath: /hostvar
terminationGracePeriodSeconds: 30
volumes:
- name: journal
hostPath:
path: /run/systemd/journal
- name: hostdev
hostPath:
path: /dev
- name: hostvar
hostPath:
path: /var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment