k8s_uptime-kuma/uptime-kuma_deployment.yml

42 lines
914 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: uptime-kuma
spec:
selector:
matchLabels:
app: uptime-kuma
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: uptime-kuma
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- arm64
containers:
- name: uptime-kuma
image: louislam/uptime-kuma
ports:
- containerPort: 3001
name: "uptime-kuma"
volumeMounts:
- name: uptime-kuma
mountPath: "/app/data"
volumes:
- name: uptime-kuma
persistentVolumeClaim:
claimName: uptime-kuma-pvc
# EOF