Last active
April 8, 2021 09:49
-
-
Save alperen-selcuk/e62b64aefe9c18398cd812b5cf511c73 to your computer and use it in GitHub Desktop.
ingress
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/v1beta1 | |
kind: Ingress | |
metadata: | |
name: webapp-ingress | |
namespace: app | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" | |
nginx.ingress.kubernetes.io/use-regex: "true" | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
spec: | |
rules: | |
- http: | |
paths: | |
- backend: | |
serviceName: webapp1-svc | |
servicePort: 80 | |
path: /webapp1(/|$)(.*) | |
- backend: | |
serviceName: webapp2-svc | |
servicePort: 80 | |
path: /webapp2(/|$)(.*) | |
- host: webapp.34.118.112.83.nip.io # change the IP address here | |
http: | |
paths: | |
- backend: | |
serviceName: webapp1-svc | |
servicePort: 80 | |
path: /webapp1 | |
- backend: | |
serviceName: webapp2-svc | |
servicePort: 80 | |
path: /webapp2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment