mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2026-05-14 00:15:20 +00:00
47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: uptime-kuma
|
|
namespace: monitoring
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: uptime-kuma
|
|
strategy:
|
|
type: Recreate # necessário — SQLite não suporta múltiplas réplicas
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: uptime-kuma
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
containers:
|
|
- name: uptime-kuma
|
|
image: louislam/uptime-kuma:2.2.1
|
|
ports:
|
|
- containerPort: 3001
|
|
name: http
|
|
env:
|
|
- name: UPTIME_KUMA_DB_TYPE
|
|
value: mariadb
|
|
- name: UPTIME_KUMA_DB_HOSTNAME
|
|
value: "mariadb-service.mariadb.svc.cluster.local"
|
|
- name: UPTIME_KUMA_DB_PORT
|
|
value: "3306"
|
|
envFrom:
|
|
- secretRef:
|
|
name: uptime-kuma-mariadb-secret
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: uptime-kuma-data-pvc
|
|
|
|
|
|
|
|
|