Created
July 21, 2019 15:43
-
-
Save hi1280/671fa99c815e8a48a3d52d6e2a212ded to your computer and use it in GitHub Desktop.
ingress.yaml for NGINX Ingress Controller and Kubernetes Dashboard
This file contains hidden or 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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: dashboard-ingress | |
namespace: kube-system | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
nginx.org/ssl-services: kubernetes-dashboard | |
nginx.ingress.kubernetes.io/rewrite-target: /$2 | |
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" | |
nginx.ingress.kubernetes.io/configuration-snippet: | | |
rewrite ^(/dashboard)$ $1/ permanent; | |
spec: | |
rules: | |
- http: | |
paths: | |
- path: /dashboard(/|$)(.*) | |
backend: | |
serviceName: kubernetes-dashboard | |
servicePort: 443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment