helm-charts/charts/pgadmin4/examples/ingress-with-outside-tls-termination.yaml
2025-04-14 07:09:14 +00:00

25 lines
1.0 KiB
YAML

#
# values.yaml
#
# Networking
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx" #
# When setting `ingress.hosts.paths`, pgAdmin needs additional header to be passed.
# Ref: https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html#http-via-nginx
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-Script-Name /pgadmin4;
# If TLS is terminated elsewhere (on external load balancer), you may want
# to redirect to `https://` URL scheme along with rewriting URL path if
# `ingress.hosts.paths` is set. This is specific for image version >= 4.22.
# Ref: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#proxy-redirect
nginx.ingress.kubernetes.io/proxy-redirect-from: "~^http://([^/]+)/(pgadmin4/)?(.*)$"
nginx.ingress.kubernetes.io/proxy-redirect-to: "https://$1/pgadmin4/$3"
hosts:
- host: chart-example.local
paths:
- path: /pgadmin4
pathType: ImplementationSpecific