Initial commit
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
This commit is contained in:
parent
9156c98a1a
commit
9061f0d470
18 changed files with 1522 additions and 2 deletions
35
templates/memcached/_container.tpl
Normal file
35
templates/memcached/_container.tpl
Normal file
|
@ -0,0 +1,35 @@
|
|||
{{/*
|
||||
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 }}
|
Loading…
Add table
Add a link
Reference in a new issue