Skip to content

Instantly share code, notes, and snippets.

@openstacker
Created March 26, 2020 21:19
Show Gist options
  • Save openstacker/eeaab9010c7dfa26c25a0b4ca8d1320c to your computer and use it in GitHub Desktop.
Save openstacker/eeaab9010c7dfa26c25a0b4ca8d1320c to your computer and use it in GitHub Desktop.
test ds
---
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