Created
February 19, 2026 05:20
-
-
Save chadmcrowell/f987c7a646fed3fe6c6ed9fabcbb21df to your computer and use it in GitHub Desktop.
Ingress
This file contains hidden or 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: web-ingress | |
| annotations: | |
| nginx.ingress.kubernetes.io/rewrite-target: / | |
| spec: | |
| ingressClassName: nginx | |
| rules: | |
| - host: myapp.example.com | |
| http: | |
| paths: | |
| - path: / | |
| pathType: Prefix | |
| backend: | |
| service: | |
| name: web | |
| port: | |
| number: 80 | |
| - path: /api | |
| pathType: Prefix | |
| backend: | |
| service: | |
| name: api | |
| port: | |
| number: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment