Created
May 31, 2023 16:22
-
-
Save rahuls360/bef54999ca36990344b73bcffc1499cf to your computer and use it in GitHub Desktop.
Nginx ingress between 2 different paths/routes
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: | |
name: minimal-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
spec: | |
ingressClassName: nginx | |
rules: | |
- http: | |
paths: | |
- path: /service1 | |
pathType: Prefix | |
backend: | |
service: | |
name: nginx-service1 | |
port: | |
number: 80 | |
- path: /service2 | |
pathType: Prefix | |
backend: | |
service: | |
name: nginx-service2 | |
port: | |
number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment