blob: 8a99da2beea20fc2bee99f532f1a2c30ab56af7f (
plain) (
blame)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: smokeping
labels:
app: smokeping
spec:
replicas: 1
selector:
matchLabels:
app: smokeping
serviceName: smokeping
template:
metadata:
name: smokeping
labels:
app: smokeping
spec:
containers:
- name: smokeping
image: lscr.io/linuxserver/smokeping:2.9.0@sha256:69a627b579778f78914129fa44195257bf9c0af1f5c58cbda1e3d48667640e51
imagePullPolicy: IfNotPresent
env:
- name: PUID
value: "10001"
- name: PGID
value: "10001"
- name: TZ
value: "America/Los_Angeles"
ports:
- containerPort: 80
protocol: TCP
volumeMounts:
- mountPath: /config
name: config
- mountPath: /data
name: data
resources:
requests:
cpu: 10m
memory: 128Mi
limits:
memory: 256Mi
livenessProbe:
httpGet:
path: /smokeping/
port: 80
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
readinessProbe:
httpGet:
path: /smokeping/
port: 80
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
initContainers:
- name: copy-config
image: busybox:1.37.0@sha256:d82f458899c9696cb26a7c02d5568f81c8c8223f8661bb2a7988b269c8b9051e
command:
- cp
- /configmap/Targets
- /config/Targets
volumeMounts:
- mountPath: /config
name: config
- mountPath: /configmap
name: configmap
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
volumes:
- name: configmap
configMap:
name: smokeping-config
restartPolicy: Always
securityContext:
fsGroup: 10001
volumeClaimTemplates:
- metadata:
name: config
labels:
app: smokeping
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 50Mi
- metadata:
name: data
labels:
app: smokeping
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
|