v2 app deployment--templating mainly in manifest now.

This commit is contained in:
2025-12-31 06:53:17 +00:00
parent 8818d822cf
commit d1304a2630
84 changed files with 630 additions and 607 deletions

View File

@@ -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

View File

@@ -1,9 +1,11 @@
name: memcached
description: Memcached is an in-memory key-value store for small chunks of arbitrary data, commonly used as a cache layer.
description: Memcached is an in-memory key-value store for small chunks of arbitrary
data, commonly used as a cache layer.
version: 1.6.32
icon: https://memcached.org/memcached-logo.png
icon: https://www.vectorlogo.zone/logos/memcached/memcached-icon.svg
requires: []
defaultConfig:
namespace: memcached
image: memcached:1.6.32-alpine
port: 11211
memoryLimit: 64m
@@ -16,4 +18,4 @@ defaultConfig:
limits:
memory: 128Mi
cpu: 200m
defaultSecrets: []
defaultSecrets: []

View File

@@ -1,4 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: memcached
name: "{{ .namespace }}"

View File

@@ -4,8 +4,8 @@ metadata:
name: memcached
spec:
ports:
- port: {{ .apps.memcached.port }}
targetPort: {{ .apps.memcached.port }}
- port: {{ .port }}
targetPort: {{ .port }}
protocol: TCP
name: memcached
selector: