mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2026-05-14 08:35:22 +00:00
uptimekuma for kubernetes
This commit is contained in:
46
roles/uptime-kuma/files/uptime-kuma-deployment.yaml
Normal file
46
roles/uptime-kuma/files/uptime-kuma-deployment.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user