-
Notifications
You must be signed in to change notification settings - Fork 0
/
DaemonSet.yml
40 lines (40 loc) · 1.02 KB
/
DaemonSet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#DaemonSet Format created by Krishnendu Bhowmick
#DaemonSet process will assign POD to each nodes of particular cluster. Here, in this process no need to mention number of replicals.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: MYAPP
namespace: default
labels:
app: MYAPP
spec:
selector:
matchLabels:
app: MYAPP
template:
metadata:
labels:
app: MYAPP
spec:
tolerations:
# this toleration is to have the daemonset runnable on master nodes
# remove it if your masters can't run pods
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: MYAPP
image: debian
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: localtime
mountPath: /etc/localtime
terminationGracePeriodSeconds: 30
volumes:
- name: localtime
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai