Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
salt: Add dedicated Ingress for MetalK8s docs
Adding a `rewrite-target` annotation is needed when the base path is not /, because NGINX does not know where to find the documentation static files. We now always expose MetalK8s docs behind /docs, optionally appending the configured base path for MetalK8s UI (e.g. /docs/platform). This will avoid strange conflicts with the behaviour of the current Ingress when running MetalK8s at a non-root path, because mixing regular expressions and exact matches does not play well with ingress-nginx. See: #3254 See: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#use-regex
- Loading branch information