Created
June 11, 2019 15:56
-
-
Save liejuntao001/2d2653c249794463314d0a3b4ea930c0 to your computer and use it in GitHub Desktop.
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: test-ingress | |
annotations: | |
kubernetes.io/ingress.class: "traefik" | |
traefik.ingress.kubernetes.io/rule-type: PathPrefixStrip | |
spec: | |
rules: | |
- host: example.com | |
http: | |
paths: | |
- path: /testsvc | |
backend: | |
serviceName: testsvc | |
servicePort: 8001 | |
- path: /test1svc | |
backend: | |
serviceName: testsvc1 | |
servicePort: 8002 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment