Created
May 31, 2023 16:24
-
-
Save rahuls360/0eac37b874b78a011c62bc12cd648040 to your computer and use it in GitHub Desktop.
Basic nginx ingress - single route
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: | |
kubernetes.io/ingress.class: nginx | |
spec: | |
ingressClassName: nginx | |
rules: | |
- http: | |
paths: | |
- path: / | |
pathType: Prefix | |
backend: | |
service: | |
name: nginx-service1 | |
port: | |
number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Routing using a domain locally
Add domain name in hosts file and point it to your localhost