39 lines
835 B
YAML
39 lines
835 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: uptime-kuma
|
|
namespace: uptime-kuma
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: uptime-kuma
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: uptime-kuma
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 1000
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: uptime-kuma
|
|
image: louislam/uptime-kuma:2-slim-rootless
|
|
ports:
|
|
- containerPort: 3001
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: uptime-kuma-data
|
|
volumes:
|
|
- name: uptime-kuma-data
|
|
persistentVolumeClaim:
|
|
claimName: uptime-kuma-pvc
|
|
|