diff --git a/helm/superset/templates/_helpers.tpl b/helm/superset/templates/_helpers.tpl index 45c72f134dd1c..8a4773bbae655 100644 --- a/helm/superset/templates/_helpers.tpl +++ b/helm/superset/templates/_helpers.tpl @@ -80,6 +80,8 @@ CACHE_CONFIG = { } DATA_CACHE_CONFIG = CACHE_CONFIG +ENABLE_PROXY_FIX = True +PROXY_FIX_CONFIG = {"x_for": 1, "x_proto": 1, "x_host": 1, "x_port": 0, "x_prefix": 1} SQLALCHEMY_DATABASE_URI = f"postgresql+psycopg2://{env('DB_USER')}:{env('DB_PASS')}@{env('DB_HOST')}:{env('DB_PORT')}/{env('DB_NAME')}" SQLALCHEMY_TRACK_MODIFICATIONS = True SECRET_KEY = env('SECRET_KEY', 'thisISaSECRET_1234') diff --git a/helm/superset/templates/deployment.yaml b/helm/superset/templates/deployment.yaml index 19a32d7069c5d..85b6b871c4cb8 100644 --- a/helm/superset/templates/deployment.yaml +++ b/helm/superset/templates/deployment.yaml @@ -86,6 +86,16 @@ spec: hostAliases: {{- toYaml . | nindent 6 }} {{- end }} containers: + - name: nginx + image: nginx + imagePullPolicy: IfNotPresent + ports: + - name: nginx + containerPort: 80 + volumeMounts: + - name: superset-extra-config + mountPath: /etc/nginx/conf.d/default.conf + subPath: nginx.conf - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} diff --git a/helm/superset/templates/service.yaml b/helm/superset/templates/service.yaml index b037e98de689b..4fa3fd2be3740 100644 --- a/helm/superset/templates/service.yaml +++ b/helm/superset/templates/service.yaml @@ -34,7 +34,7 @@ spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.servicePort }} - targetPort: http + targetPort: 80 protocol: TCP <<<<<<< HEAD name: http