feat(helm): complete chart normalization with ConfigMap, HPA, and OCI migration
- Added debug mode, structured ConfigMap pattern, and README to all charts - Migrated all flat-structure charts to hierarchical values under chartname key - Fixed templates to use correct hierarchical paths - Renamed helm-rustical key to rustical, added HPA support - Fixed ingress YAML parsing (oxicloud), nested env vars (rustical) - Pushed all normalized charts to OCI registry as 1.0.0+ and updated ArgoCD apps
This commit is contained in:
parent
d0f40c0967
commit
1fd2bfef3d
71 changed files with 2150 additions and 965 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{{- if .Values.machineLearning.enabled -}}
|
||||
{{- if .Values.immich.machineLearning.enabled -}}
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
|
|
@ -8,8 +8,8 @@ metadata:
|
|||
app.kubernetes.io/component: machine-learning
|
||||
spec:
|
||||
serviceName: {{ include "immich.fullname" . }}-machine-learning-headless
|
||||
{{- if not .Values.machineLearning.autoscaling.enabled }}
|
||||
replicas: {{ .Values.machineLearning.replicaCount }}
|
||||
{{- if not .Values.immich.machineLearning.autoscaling.enabled }}
|
||||
replicas: {{ .Values.immich.machineLearning.replicaCount }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
|
|
@ -17,7 +17,7 @@ spec:
|
|||
app.kubernetes.io/component: machine-learning
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.machineLearning.podAnnotations }}
|
||||
{{- with .Values.immich.machineLearning.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
@ -25,41 +25,41 @@ spec:
|
|||
{{- include "immich.selectorLabels" . | nindent 8 }}
|
||||
app.kubernetes.io/component: machine-learning
|
||||
spec:
|
||||
{{- with .Values.machineLearning.imagePullSecrets }}
|
||||
{{- with .Values.immich.machineLearning.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.machineLearning.podSecurityContext | nindent 8 }}
|
||||
{{- toYaml .Values.immich.machineLearning.podSecurityContext | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}-machine-learning
|
||||
securityContext:
|
||||
{{- toYaml .Values.machineLearning.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.machineLearning.image.repository }}:{{ .Values.machineLearning.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.machineLearning.image.pullPolicy }}
|
||||
{{- toYaml .Values.immich.machineLearning.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.immich.machineLearning.image.repository }}:{{ .Values.immich.machineLearning.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.immich.machineLearning.image.pullPolicy }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 3003
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: IMMICH_PORT
|
||||
value: {{ .Values.machineLearning.service.port | quote }}
|
||||
value: {{ .Values.immich.machineLearning.service.port | quote }}
|
||||
- name: IMMICH_MACHINE_LEARNING_PORT
|
||||
value: "3003"
|
||||
resources:
|
||||
{{- toYaml .Values.machineLearning.resources | nindent 12 }}
|
||||
{{- toYaml .Values.immich.machineLearning.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: model-cache
|
||||
mountPath: /cache
|
||||
{{- with .Values.machineLearning.nodeSelector }}
|
||||
{{- with .Values.immich.machineLearning.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.machineLearning.affinity }}
|
||||
{{- with .Values.immich.machineLearning.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.machineLearning.tolerations }}
|
||||
{{- with .Values.immich.machineLearning.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue