uptime-kuma/kubernetes/uptime-kuma/deployment.yml

46 lines
957 B
YAML
Raw Normal View History

2021-08-18 08:38:05 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
component: uptime-kuma
2021-08-19 11:50:05 +00:00
name: deployment
2021-08-18 08:38:05 +00:00
spec:
selector:
matchLabels:
component: uptime-kuma
replicas: 1
2021-08-18 08:38:05 +00:00
strategy:
type: Recreate
2021-08-18 08:38:05 +00:00
template:
metadata:
labels:
component: uptime-kuma
spec:
containers:
2021-08-19 11:50:05 +00:00
- name: app
2021-08-18 17:58:17 +02:00
image: louislam/uptime-kuma:1
2021-08-18 08:38:05 +00:00
ports:
- containerPort: 3001
volumeMounts:
- mountPath: /app/data
2021-08-19 11:50:05 +00:00
name: storage
livenessProbe:
exec:
command:
- node
- extra/healthcheck.js
2021-09-10 22:32:11 +08:00
initialDelaySeconds: 180
periodSeconds: 60
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: 3001
scheme: HTTP
2021-08-18 08:38:05 +00:00
volumes:
2021-08-19 11:50:05 +00:00
- name: storage
2021-08-18 08:38:05 +00:00
persistentVolumeClaim:
2021-08-19 11:50:05 +00:00
claimName: pvc