Created
November 7, 2017 22:22
-
-
Save jevonearth/d2e43f4c381743aa448743ff21409050 to your computer and use it in GitHub Desktop.
trafik ingress
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: kibana-ingress | |
| annotations: | |
| kubernetes.io/ingress.class: traefik | |
| traefik.backend.loadbalancer.sticky: "true" | |
| ingress.kubernetes.io/rewrite-target: "/" | |
| spec: | |
| tls: | |
| - secretName: traefik-cert | |
| rules: | |
| - host: foo.example.net | |
| http: | |
| paths: | |
| - path: /kibana | |
| backend: | |
| serviceName: kibana | |
| servicePort: 5601 | |
| - path: /elasticsearch | |
| backend: | |
| serviceName: elasticsearch | |
| servicePort: 9200 | |
| - path: /grafana | |
| backend: | |
| serviceName: grafana | |
| servicePort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will create a backend with the
PathPrefixruleand
Will create one with a a path
prefixstriprule i.e.foo.example.com/barwill be routed to servicehttp://bar/