v2 app deployment--templating mainly in manifest now.
This commit is contained in:
@@ -3,7 +3,7 @@ kind: Deployment
|
||||
metadata:
|
||||
name: memcached
|
||||
spec:
|
||||
replicas: {{ .apps.memcached.replicas }}
|
||||
replicas: {{ .replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
component: cache
|
||||
@@ -14,24 +14,24 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: memcached
|
||||
image: {{ .apps.memcached.image }}
|
||||
image: "{{ .image }}"
|
||||
ports:
|
||||
- containerPort: {{ .apps.memcached.port }}
|
||||
- containerPort: {{ .port }}
|
||||
name: memcached
|
||||
args:
|
||||
- -m
|
||||
- {{ .apps.memcached.memoryLimit }}
|
||||
- "{{ .memoryLimit }}"
|
||||
- -c
|
||||
- "{{ .apps.memcached.maxConnections }}"
|
||||
- "{{ .maxConnections }}"
|
||||
- -p
|
||||
- "{{ .apps.memcached.port }}"
|
||||
- "{{ .port }}"
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .apps.memcached.resources.requests.memory }}
|
||||
cpu: {{ .apps.memcached.resources.requests.cpu }}
|
||||
memory: "{{ .resources.requests.memory }}"
|
||||
cpu: "{{ .resources.requests.cpu }}"
|
||||
limits:
|
||||
memory: {{ .apps.memcached.resources.limits.memory }}
|
||||
cpu: {{ .apps.memcached.resources.limits.cpu }}
|
||||
memory: "{{ .resources.limits.memory }}"
|
||||
cpu: "{{ .resources.limits.cpu }}"
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 11211
|
||||
|
||||
Reference in New Issue
Block a user