mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
🚀 dragonfly
This commit is contained in:
24
kubernetes/apps/database/dragonfly/cluster/cluster.yaml
Normal file
24
kubernetes/apps/database/dragonfly/cluster/cluster.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/dragonflydb.io/dragonfly_v1alpha1.json
|
||||
apiVersion: dragonflydb.io/v1alpha1
|
||||
kind: Dragonfly
|
||||
metadata:
|
||||
name: dragonfly
|
||||
spec:
|
||||
image: ghcr.io/dragonflydb/dragonfly:v1.16.0
|
||||
replicas: 4 # set to the number of nodes in the cluster
|
||||
env:
|
||||
- name: MAX_MEMORY
|
||||
valueFrom:
|
||||
resourceFieldRef:
|
||||
resource: limits.memory
|
||||
divisor: 1Mi
|
||||
args:
|
||||
- --maxmemory=$(MAX_MEMORY)Mi
|
||||
- --proactor_threads=2
|
||||
- --cluster_mode=emulated
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
limits:
|
||||
memory: 512Mi
|
@@ -0,0 +1,7 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./cluster.yaml
|
||||
- ./podmonitor.yaml
|
13
kubernetes/apps/database/dragonfly/cluster/podmonitor.yaml
Normal file
13
kubernetes/apps/database/dragonfly/cluster/podmonitor.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/monitoring.coreos.com/podmonitor_v1.json
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: dragonfly
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: dragonfly
|
||||
podTargetLabels: [app]
|
||||
podMetricsEndpoints:
|
||||
- port: admin
|
Reference in New Issue
Block a user