diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 1dd9b0b..09916ba 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -45,6 +45,13 @@ spec: - name: http containerPort: {{ .Values.containerPort | default 8080 }} # ← Now points to 8080 protocol: TCP + {{- if .Values.env }} + env: + {{- range $key, $value := .Values.env }} + - name: {{ $key }} + value: {{ $value | quote }} + {{- end }} + {{- end }} {{- with .Values.livenessProbe }} livenessProbe: {{- toYaml . | nindent 12 }} diff --git a/chart/values.yaml b/chart/values.yaml index 55a0546..b703d66 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -62,6 +62,10 @@ service: containerPort: 8080 +# Environment variables to be passed to the container +env: + PUBLIC_BACKEND_HOST: "https://api.acayip.dev" + # This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/ ingress: enabled: true