-
Notifications
You must be signed in to change notification settings - Fork 3
/
daemonset.yaml
69 lines (69 loc) · 1.65 KB
/
daemonset.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: quack
namespace: quack
labels:
app: quack
spec:
selector:
matchLabels:
app: quack
updateStrategy:
type: RollingUpdate
template:
metadata:
name: quack
labels:
app: quack
spec:
serviceAccountName: quack
containers:
- name: quack
image: quay.io/pusher/quack:v0.1.0
imagePullPolicy: Always
args:
- --tls-cert-file=/etc/certs/cert.pem
- --tls-private-key-file=/etc/certs/key.pem
- --audit-log-path=-
- --audit-policy-file=/etc/config/audit.yaml
- --v=2
resources:
requests:
cpu: 10m
memory: 20Mi
limits:
cpu: 100m
memory: 100Mi
livenessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: 443
initialDelaySeconds: 10
readinessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: 443
initialDelaySeconds: 10
volumeMounts:
- name: certs
mountPath: /etc/certs
readOnly: true
- name: config
mountPath: /etc/config
readOnly: true
volumes:
- name: certs
secret:
secretName: quack-certs
- name: config
configMap:
name: quack-config
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
nodeSelector:
"node-role.kubernetes.io/master": "true"