Archive dragonfly helm implementation for operator.
This commit is contained in:
parent
623867a559
commit
e65a7d27ea
3 changed files with 89 additions and 0 deletions
59
archive/dragonflydb/app/helmrelease.yaml
Normal file
59
archive/dragonflydb/app/helmrelease.yaml
Normal file
|
@ -0,0 +1,59 @@
|
|||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: dragonfly-valinor
|
||||
namespace: fediverse
|
||||
spec:
|
||||
interval: 30m
|
||||
chart:
|
||||
spec:
|
||||
chart: dragonfly
|
||||
version: v1.7.1
|
||||
interval: 30m
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: dragonflydb
|
||||
namespace: flux-system
|
||||
|
||||
values:
|
||||
replicaCount: 1
|
||||
controller:
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
|
||||
podSecurityContext:
|
||||
runAsUser: 568
|
||||
runAsGroup: 568
|
||||
fsGroup: 568
|
||||
fsGroupChangePolicy: "OnRootMismatch"
|
||||
supplementalGroups:
|
||||
- 65539
|
||||
storage:
|
||||
enabled: true
|
||||
requests: 128Mi # Set as desired
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1000m
|
||||
memory: 6Gi
|
||||
limits:
|
||||
memory: 8Gi
|
||||
extraArgs:
|
||||
- --dbfilename=dump
|
||||
- --save_schedule=*:* # HH:MM glob format
|
||||
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
prometheusRule:
|
||||
enabled: true
|
||||
spec:
|
||||
- alert: DragonflyMissing
|
||||
expr: absent(dragonfly_uptime_in_seconds) == 1
|
||||
for: 0m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: Dragonfly is missing
|
||||
description: "Dragonfly is missing"
|
16
archive/dragonflydb/app/kustomization.yaml
Normal file
16
archive/dragonflydb/app/kustomization.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: fediverse
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
||||
configMapGenerator:
|
||||
- name: dragonflydb-dashboard
|
||||
files:
|
||||
- dragonflydb-dashboard.json=https://raw.githubusercontent.com/dragonflydb/dragonfly/main/tools/local/monitoring/grafana/provisioning/dashboards/dashboard.json
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
annotations:
|
||||
kustomize.toolkit.fluxcd.io/substitute: disabled
|
||||
labels:
|
||||
grafana_dashboard: "true"
|
14
archive/dragonflydb/ks.yaml
Normal file
14
archive/dragonflydb/ks.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cluster-apps-database-dragonflydb
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 30m
|
||||
path: "./kubernetes/apps/database/dragonflydb/app"
|
||||
prune: false
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: valinor
|
||||
wait: false # no flux ks dependents
|
Reference in a new issue