From dfaccd03badb38ea1b5820ae788cba43d9ab5fd8 Mon Sep 17 00:00:00 2001 From: Andres Martinez Gotor Date: Thu, 21 Nov 2019 02:40:29 +0100 Subject: [PATCH] Add missing Nginx configuration (#1305) --- chart/kubeapps/templates/kubeapps-frontend-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chart/kubeapps/templates/kubeapps-frontend-config.yaml b/chart/kubeapps/templates/kubeapps-frontend-config.yaml index 12d153b0fb5..77d981d07e8 100644 --- a/chart/kubeapps/templates/kubeapps-frontend-config.yaml +++ b/chart/kubeapps/templates/kubeapps-frontend-config.yaml @@ -56,6 +56,12 @@ data: location ~* /api/chartsvc { rewrite /api/chartsvc/(.*) /chartsvc/$1 break; rewrite /api/chartsvc /chartsvc break; + + {{- if .Values.frontend.proxypassAccessTokenAsBearer }} + # Google Kubernetes Engine requires the access_token as the Bearer when talking to the k8s api server. + proxy_set_header Authorization "Bearer $http_x_forwarded_access_token"; + {{- end }} + proxy_pass http://{{ template "kubeapps.tiller-proxy.fullname" . }}:{{ .Values.tillerProxy.service.port }}; }