Standardize config.

This commit is contained in:
2026-05-23 19:51:33 +00:00
parent e2e3f730a5
commit 6b5325c6f3
87 changed files with 426 additions and 531 deletions

View File

@@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: memcached
spec:
replicas: {{ .replicas }}
replicas: 1
selector:
matchLabels:
component: cache
@@ -14,24 +14,24 @@ spec:
spec:
containers:
- name: memcached
image: "{{ .image }}"
image: "memcached:1.6.32-alpine"
ports:
- containerPort: {{ .port }}
- containerPort: 11211
name: memcached
args:
- -m
- "{{ .memoryLimit }}"
- -c
- "{{ .maxConnections }}"
- "1024"
- -p
- "{{ .port }}"
- "11211"
resources:
requests:
memory: "{{ .resources.requests.memory }}"
cpu: "{{ .resources.requests.cpu }}"
memory: 64Mi
cpu: 100m
limits:
memory: "{{ .resources.limits.memory }}"
cpu: "{{ .resources.limits.cpu }}"
memory: 128Mi
cpu: 200m
securityContext:
runAsNonRoot: true
runAsUser: 11211