Skip to content

Instantly share code, notes, and snippets.

@varshavaradarajan
Created October 13, 2021 15:41
Show Gist options
  • Save varshavaradarajan/03f38f4995477ddfdeca0ee173709540 to your computer and use it in GitHub Desktop.
Save varshavaradarajan/03f38f4995477ddfdeca0ee173709540 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: doks-debug
namespace: kube-system
labels:
app: doks-debug
spec:
replicas: 1
selector:
matchLabels:
name: doks-debug
template:
metadata:
labels:
name: doks-debug
annotations:
clusterlint.digitalocean.com/disabled-checks: "hostpath-volume"
spec:
hostPID: true
hostIPC: true
hostNetwork: true
serviceAccount: metrics-server
serviceAccountName: metrics-server
tolerations:
- operator: Exists
containers:
- name: doks-debug
securityContext:
privileged: true
image: digitalocean/doks-debug:latest
command: [ "sleep", "infinity" ]
resources:
requests:
memory: "32Mi"
cpu: "100m"
limits:
memory: "32Mi"
cpu: "100m"
volumeMounts:
- name: host
mountPath: /host
- name: docker
mountPath: /var/run/docker.sock
priorityClassName: system-cluster-critical
volumes:
- name: host
hostPath:
path: /
- name: docker
hostPath:
path: /var/run/docker.sock
type: Socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment