This commit is contained in:
2026-10-22 02:06:39 +00:00
commit 05c3339f1e
82 changed files with 3202 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: generic-http-service
description: One HTTP workload with port-free headless discovery.
type: application
version: 5.0.0
appVersion: "5"

View File

@@ -0,0 +1,95 @@
{{- $s := .Values.spec -}}
{{- $p := .Values.platform -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $p.workloadName }}
namespace: {{ $p.namespace }}
labels:
{{- toYaml $p.labels | nindent 4 }}
annotations:
{{- toYaml $p.annotations | nindent 4 }}
spec:
replicas: {{ $s.replicas }}
{{- with (default (dict) $p.rollout).progressDeadlineSeconds }}
progressDeadlineSeconds: {{ . }}
{{- end }}
selector:
matchLabels:
{{- toYaml $p.selector | nindent 6 }}
template:
metadata:
labels:
{{- toYaml $p.labels | nindent 8 }}
annotations:
{{- toYaml $p.annotations | nindent 8 }}
spec:
automountServiceAccountToken: false
{{- if $s.runtime.runAsRoot }}
securityContext:
runAsNonRoot: false
{{- end }}
{{- with (default (dict) $p.scheduling).nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with (default (dict) $p.scheduling).tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $p.volumeAttachments }}
volumes:
{{- range . }}
- name: {{ .name }}
persistentVolumeClaim:
claimName: {{ .claimName }}
{{- end }}
{{- end }}
containers:
- name: app
image: {{ $s.runtime.resolvedImage | quote }}
{{- with $s.runtime.command }}
command:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with $s.runtime.args }}
args:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if $s.env }}
env:
{{- range $name, $value := $s.env }}
- name: {{ $name }}
value: {{ $value | quote }}
{{- end }}
{{- else }}
env: []
{{- end }}
{{- with $p.volumeAttachments }}
volumeMounts:
{{- range . }}
- name: {{ .name }}
mountPath: {{ .mountPath | quote }}
readOnly: {{ .readOnly }}
{{- end }}
{{- end }}
resources:
{{- toYaml $p.resources | nindent 12 }}
securityContext:
allowPrivilegeEscalation: false
{{- $add := list "NET_BIND_SERVICE" }}
{{- if $s.runtime.runAsRoot }}
{{- $add = concat $add (list "CHOWN" "DAC_OVERRIDE" "FOWNER" "FSETID" "KILL" "SETGID" "SETUID") }}
{{- end }}
{{- with $add }}
capabilities:
add:
{{- toYaml . | nindent 16 }}
{{- end }}
{{- with $s.healthCheck }}
readinessProbe:
httpGet:
path: {{ .path | quote }}
port: {{ .port }}
initialDelaySeconds: {{ .initialDelaySeconds }}
{{- end }}

View File

@@ -0,0 +1,19 @@
{{- $p := .Values.platform -}}
{{- range $p.volumeAttachments }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .claimName }}
namespace: {{ $p.namespace }}
labels:
{{- toYaml $p.labels | nindent 4 }}
spec:
storageClassName: {{ .storageClassName | quote }}
accessModes:
{{- toYaml .accessModes | nindent 4 }}
volumeMode: {{ .volumeMode }}
resources:
requests:
storage: {{ .size | quote }}
{{- end }}

View File

@@ -0,0 +1,14 @@
{{- $s := .Values.spec -}}
{{- $p := .Values.platform -}}
apiVersion: v1
kind: Service
metadata:
name: {{ $p.serviceName }}
namespace: {{ $p.namespace }}
labels:
{{- toYaml $p.labels | nindent 4 }}
spec:
type: ClusterIP
clusterIP: None
selector:
{{- toYaml $p.selector | nindent 4 }}

View File

@@ -0,0 +1,3 @@
# The gateway supplies both roots. The chart never derives identity or endpoints itself.
spec: {}
platform: {}