mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-08-25 08:04:19 +02:00
36 lines
845 B
Smarty
36 lines
845 B
Smarty
|
{{/*
|
||
|
Create helm partial for memcached
|
||
|
*/}}
|
||
|
{{- define "memcached" }}
|
||
|
- name: memcached
|
||
|
image: {{ .Values.images.memcached }}
|
||
|
imagePullPolicy: {{ .Values.images.pullPolicy }}
|
||
|
command:
|
||
|
- memcached
|
||
|
- -m {{ .Values.memcached.maxItemMemory }}
|
||
|
{{- if .Values.memcached.extendedOptions }}
|
||
|
- -o
|
||
|
- {{ .Values.memcached.extendedOptions }}
|
||
|
{{- end }}
|
||
|
{{- if .Values.memcached.verbosity }}
|
||
|
- -{{ .Values.memcached.verbosity }}
|
||
|
{{- end }}
|
||
|
ports:
|
||
|
- name: memcache
|
||
|
containerPort: 11211
|
||
|
livenessProbe:
|
||
|
tcpSocket:
|
||
|
port: memcache
|
||
|
initialDelaySeconds: 30
|
||
|
timeoutSeconds: 5
|
||
|
readinessProbe:
|
||
|
tcpSocket:
|
||
|
port: memcache
|
||
|
initialDelaySeconds: 5
|
||
|
timeoutSeconds: 1
|
||
|
securityContext:
|
||
|
runAsUser: 1000
|
||
|
resources:
|
||
|
{{ toYaml .Values.resources.memcached | indent 10 }}
|
||
|
{{- end }}
|