Skip to content

Instantly share code, notes, and snippets.

@strigazi
Created March 24, 2020 12:51
Show Gist options
  • Save strigazi/5e75559e2221d4b9e3f63f7b33c82c9b to your computer and use it in GitHub Desktop.
Save strigazi/5e75559e2221d4b9e3f63f7b33c82c9b to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: debug-app
namespace: kube-system
labels:
k8s-app: debug-app
spec:
selector:
matchLabels:
name: debug-app
template:
metadata:
labels:
name: debug-app
spec:
tolerations:
- key: node.kubernetes.io/unschedulable
effect: NoSchedule
- effect: NoSchedule
key: dedicated
value: master
- effect: NoSchedule
key: CriticalAddonsOnly
value: "True"
#nodeSelector:
# debug: "true"
#securityContext:
# runAsUser: 0
# fsGroup: 0
containers:
- name: httpd
image: httpd
ports:
- containerPort: 80
- name: centos
image: centos:8
command:
- /bin/sh
args:
- -c
- "sleep 100d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment