ce7cb702218693d08ea6d83464d2457c9250027c

This commit is contained in:
ms2k 2026-11-12 20:46:28 +09:00
commit 34c5f8963c

View file

@ -0,0 +1,39 @@
apiVersion: dragonflydb.io/v1alpha1
kind: Dragonfly
metadata:
name: forgejo
namespace: dragonfly
spec:
replicas: 2
image: docker.dragonflydb.io/dragonflydb/dragonfly:v2.0.2@sha256:061f00b201b58e12f974e4e96c761a881ee1c05e9d8ee967466a604b7299753b
imagePullPolicy: IfNotPresent
args:
- --proactor_threads=1
- --maxmemory=256MiB
- --cache_mode=true
- --uring_disable_iowait=true
aclFromSecret:
name: forgejo-acl
key: acl
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
add:
- SETUID
- SETGID
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
memory: 384Mi
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: forgejo
app.kubernetes.io/name: dragonfly