Kubernetes: added multiple microservices

- added minio object storage
- added immich photo viewer
- added cloudnative-pg postgres operator for db management
- added cronjobs to run different maintenance tasks
- updated readme
This commit is contained in:
2025-05-27 21:21:17 +03:00
parent fae40d0332
commit 16f8d85651
14 changed files with 1118 additions and 8 deletions

View File

@ -0,0 +1,33 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: update-dns-cronjob
spec:
schedule: "15 * * * *"
concurrencyPolicy: Replace # Add this line
jobTemplate:
spec:
template:
spec:
containers:
- name: cron-container
image: alpine/curl
command: ["/bin/sh", "-c"]
env:
- name: CLOUDFLARE_API_TOKEN
valueFrom:
secretKeyRef:
name: cloudflare-secret
key: api-token
args:
- apk add --no-cache bash jq curl &&
/script/update_dns.sh
volumeMounts:
- name: script-volume
mountPath: /script
volumes:
- name: script-volume
configMap:
name: update-dns-script
defaultMode: 0777
restartPolicy: OnFailure