diff --git a/charts/kubefirst-api/templates/deployment.yaml b/charts/kubefirst-api/templates/deployment.yaml index 013b7124..77162fd2 100644 --- a/charts/kubefirst-api/templates/deployment.yaml +++ b/charts/kubefirst-api/templates/deployment.yaml @@ -47,10 +47,6 @@ spec: containers: - name: {{ .Chart.Name }} env: - {{- range $name, $item := .Values.env }} - - name: {{ $name }} - {{- $item | toYaml | nindent 14 }} - {{- end }} {{- if not .Values.atlasDbHost }} - name: MONGODB_HOST value: {{ .Values.mongodbHost | default (printf "%s-mongodb.%s.svc.cluster.local" (.Release.Name ) (.Release.Namespace )) }} diff --git a/charts/kubefirst-api/values.yaml b/charts/kubefirst-api/values.yaml index 73d245cd..b75fa2cc 100644 --- a/charts/kubefirst-api/values.yaml +++ b/charts/kubefirst-api/values.yaml @@ -91,10 +91,12 @@ tolerations: [] affinity: {} -env: - ENTERPRISE_API_URL: +env: [ + { + name: "ENTERPRISE_API_URL", value: "http://kubefirst-kubefirst-api-ee.kubefirst.svc.cluster.local" - + }, +] envFrom: [] existingSecret: ''