kubernetes/apps/miroir-system/miroir-medic/app/daemonset.yaml
1
---
2
apiVersion: apps/v1
3
kind: DaemonSet
4
metadata:
5
name: miroir-medic
6
annotations:
7
reloader.stakater.com/auto: "true"
8
spec:
9
selector:
10
matchLabels:
11
app.kubernetes.io/name: miroir-medic
12
template:
13
metadata:
14
labels:
15
app.kubernetes.io/name: miroir-medic
16
spec:
17
hostNetwork: true
18
hostPID: true
19
dnsPolicy: Default
20
priorityClassName: system-node-critical
21
terminationGracePeriodSeconds: 5
22
automountServiceAccountToken: false
23
tolerations:
24
- operator: Exists
25
containers:
26
- name: medic
27
image: docker.io/library/alpine:3.24.1
28
imagePullPolicy: IfNotPresent
29
command:
30
- /bin/sh
31
- /opt/medic/medic.sh
32
env:
33
- name: NODE_NAME
34
valueFrom:
35
fieldRef:
36
fieldPath: spec.nodeName
37
- name: HOST_IP
38
valueFrom:
39
fieldRef:
40
fieldPath: status.hostIP
41
- name: PUSHOVER_TOKEN
42
valueFrom:
43
secretKeyRef:
44
name: miroir-medic-secret
45
key: PUSHOVER_TOKEN
46
optional: true
47
- name: PUSHOVER_USER
48
valueFrom:
49
secretKeyRef:
50
name: miroir-medic-secret
51
key: PUSHOVER_USER
52
optional: true
53
securityContext:
54
privileged: true
55
resources:
56
requests:
57
cpu: 10m
58
memory: 32Mi
59
limits:
60
memory: 128Mi
61
volumeMounts:
62
- name: script
63
mountPath: /opt/medic
64
readOnly: true
65
- name: persistent-state
66
mountPath: /var/lib/miroir-medic
67
- name: boot-state
68
mountPath: /run/miroir-medic
69
volumes:
70
- name: script
71
configMap:
72
name: miroir-medic
73
- name: persistent-state
74
hostPath:
75
path: /var/lib/miroir-medic
76
type: DirectoryOrCreate
77
- name: boot-state
78
hostPath:
79
path: /run/miroir-medic
80
type: DirectoryOrCreate