diff --git a/helm-chart/templates/deployment.yaml b/helm-chart/templates/deployment.yaml index c162ea2..330af1c 100644 --- a/helm-chart/templates/deployment.yaml +++ b/helm-chart/templates/deployment.yaml @@ -56,7 +56,7 @@ spec: mountPath: /opt/unnamed-thingity-thing/comptest/comptest.yaml subPath: comptest.yaml containers: - - name: run-app + - name: django image: {{ .Values.image.repository }}:{{ .Values.image.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} workingDir: /opt/unnamed-thingity-thing/comptest @@ -67,6 +67,7 @@ spec: - comptest.wsgi securityContext: runAsUser: 0 + resources: {{ toJson .Values.resources }} volumeMounts: - name: storage mountPath: /opt/state @@ -74,9 +75,10 @@ spec: mountPath: /opt/unnamed-thingity-thing/comptest/comptest.yaml subPath: comptest.yaml - name: nginx - image: nginx:1.27 + image: {{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag }} securityContext: runAsUser: 0 + resources: {{ toJson .Values.nginx.resources }} volumeMounts: - name: storage mountPath: /opt/state diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 372f182..d16b5fc 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -51,3 +51,9 @@ yamlSettings: DATABASES.default.NAME: /opt/state/db.sqlite3 adminUsers: [] + +nginx: + image: + repository: nginx + tag: 1.27 + resources: {}