46 lines
1016 B
YAML
46 lines
1016 B
YAML
{{- if .Values.dragonfly.enabled }}
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Chart.Name }}-dragonfly
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
component: {{ .Chart.Name }}-dragonfly
|
|
template:
|
|
metadata:
|
|
labels:
|
|
component: {{ .Chart.Name }}-dragonfly
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regsecret
|
|
containers:
|
|
- name: dragonfly
|
|
image: cr.yandex/crpnn6fi85p3dauha6nc/dragonflydb:1.15.1
|
|
{{- if .Values.dragonfly.maxmemory }}
|
|
args:
|
|
- --maxmemory={{ .Values.dragonfly.maxmemory }}
|
|
{{- end }}
|
|
ports:
|
|
- name: dragonfly
|
|
containerPort: 6379
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 6379
|
|
initialDelaySeconds: 30
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Chart.Name }}-dragonfly
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
component: {{ .Chart.Name }}-dragonfly
|
|
ports:
|
|
- port: 6379
|
|
{{- end }} |