Swap dragonfly helm for operator
This commit is contained in:
parent
e65a7d27ea
commit
9951a30d89
9 changed files with 2632 additions and 90 deletions
|
@ -1,59 +0,0 @@
|
|||
---
|
||||
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"
|
|
@ -1,16 +0,0 @@
|
|||
---
|
||||
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"
|
|
@ -1,14 +0,0 @@
|
|||
---
|
||||
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
|
|
@ -6,4 +6,3 @@ resources:
|
|||
- ./namespace.yaml
|
||||
# Flux-Kustomizations
|
||||
- ./cloudnative-pg/ks.yaml
|
||||
- ./dragonflydb/ks.yaml
|
||||
|
|
1114
kubernetes/apps/dragonflydb/dragonfly-operator-crd.yaml
Normal file
1114
kubernetes/apps/dragonflydb/dragonfly-operator-crd.yaml
Normal file
File diff suppressed because it is too large
Load diff
1488
kubernetes/apps/dragonflydb/dragonfly-operator.yaml
Normal file
1488
kubernetes/apps/dragonflydb/dragonfly-operator.yaml
Normal file
File diff suppressed because it is too large
Load diff
7
kubernetes/apps/dragonflydb/kustomization.yaml
Normal file
7
kubernetes/apps/dragonflydb/kustomization.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
# Pre Flux-Kustomizations
|
||||
- ./dragonfly-operator-crd.yaml
|
||||
- ./dragonfly-operator.yaml
|
22
kubernetes/apps/fediverse/mastodon/app/dragonfly.yaml
Normal file
22
kubernetes/apps/fediverse/mastodon/app/dragonfly.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
apiVersion: dragonflydb.io/v1alpha1
|
||||
kind: Dragonfly
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: dragonfly
|
||||
app.kubernetes.io/instance: dragonfly-mastodon
|
||||
app.kubernetes.io/part-of: dragonfly-operator
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
app.kubernetes.io/created-by: dragonfly-operator
|
||||
name: dragonfly-mastodon
|
||||
spec:
|
||||
replicas: 3
|
||||
resources:
|
||||
requests:
|
||||
cpu: 2000m
|
||||
memory: 8Gi
|
||||
limits:
|
||||
cpu: 2000m
|
||||
memory: 8Gi
|
||||
args:
|
||||
- --dbfilename=dump
|
||||
- --save_schedule=*:* # HH:MM glob format
|
|
@ -6,3 +6,4 @@ resources:
|
|||
- ./ingress.yaml
|
||||
- ./externalsecret.yaml
|
||||
- ./elasticsearch.yaml
|
||||
- ./dragonfly.yaml
|
||||
|
|
Reference in a new issue