Last active
December 19, 2021 19:30
-
-
Save caodangtinh/829fa49ed160e2243049f4d00f74b6b4 to your computer and use it in GitHub Desktop.
Nginx ingress controller definition
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: my-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
spec: | |
ingressClassName: nginx | |
rules: | |
- host: aws-lb-dns-name | |
http: | |
paths: | |
- backend: | |
service: | |
name: nginx-service | |
port: | |
number: 8080 | |
path: /my-app | |
pathType: Prefix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment