Created
June 6, 2024 17:05
-
-
Save davidmroth/4a0e16e3aa816a7a0abbeb2fbeda9418 to your computer and use it in GitHub Desktop.
Hosting grafana using ingress-nginx behind a sub path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
nginx.ingress.kubernetes.io/use-regex: "true" | |
name: grafana | |
namespace: monitoring | |
spec: | |
ingressClassName: nginx | |
rules: | |
- host: <your host> | |
http: | |
paths: | |
- backend: | |
service: | |
name: grafana | |
port: | |
name: http | |
path: /observe[/]?(.*) | |
pathType: Prefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[server] | |
root_url: 'https://<your host>/observe/', | |
domain: 'prime.web.att.com', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment