From 514e1d46c0248bfae5da1f2ceb12ca8799a81468 Mon Sep 17 00:00:00 2001 From: Offending Commit Date: Wed, 3 Jun 2026 11:00:54 -0500 Subject: [PATCH] feat(helm): add Deployment template with read-only FS, tmpfs, probes --- charts/openconcho/templates/deployment.yaml | 80 +++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 charts/openconcho/templates/deployment.yaml diff --git a/charts/openconcho/templates/deployment.yaml b/charts/openconcho/templates/deployment.yaml new file mode 100644 index 0000000..b7cc438 --- /dev/null +++ b/charts/openconcho/templates/deployment.yaml @@ -0,0 +1,80 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "openconcho.fullname" . }} + labels: + {{- include "openconcho.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "openconcho.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "openconcho.selectorLabels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "openconcho.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ include "openconcho.imageTag" . }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: {{ .Values.service.containerPort }} + protocol: TCP + env: + - name: OPENCONCHO_DEFAULT_HONCHO_URL + value: {{ .Values.honcho.defaultUrl | quote }} + - name: OPENCONCHO_UPSTREAM_ALLOWLIST + value: {{ .Values.honcho.upstreamAllowlist | quote }} + livenessProbe: + {{- toYaml .Values.livenessProbe | nindent 12 }} + readinessProbe: + {{- toYaml .Values.readinessProbe | nindent 12 }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + {{- range .Values.tmpfsMounts }} + - name: {{ .mountPath | trimPrefix "/" | replace "/" "-" }} + mountPath: {{ .mountPath }} + {{- end }} + volumes: + {{- range .Values.tmpfsMounts }} + - name: {{ .mountPath | trimPrefix "/" | replace "/" "-" }} + emptyDir: + medium: Memory + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }}