48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: app
|
|
spec:
|
|
template:
|
|
spec:
|
|
tolerations:
|
|
- key: "public"
|
|
operator: "Equal"
|
|
value: "true"
|
|
effect: "NoSchedule"
|
|
affinity:
|
|
nodeAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 100
|
|
preference:
|
|
matchExpressions:
|
|
- key: public
|
|
operator: In
|
|
values:
|
|
- "true"
|
|
containers:
|
|
- name: uptime-kuma
|
|
image: louislam/uptime-kuma:1
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 3001
|
|
name: uptime-kuma
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: uptime-kuma
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
scheme: HTTP
|
|
path: /
|
|
port: uptime-kuma
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: uptime-kuma-pvc
|