Last active
April 23, 2022 07:39
-
-
Save karthikeyanVK/759879d12ab8c24b3b2d0f81afec80d3 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: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: petshop-ingress | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/use-regex: "true" | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
spec: | |
rules: | |
- http: | |
paths: | |
- path: /?(.*) | |
pathType: Prefix | |
backend: | |
service: | |
name: {{ .Release.Name }}-products-service | |
port: | |
number: {{ .Values.products.service.port }} | |
- path: /orders/?(.*) | |
pathType: Prefix | |
backend: | |
service: | |
name: {{ .Release.Name }}-orders-service | |
port: | |
number: {{ .Values.orders.service.port }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed API Version