Created
February 19, 2026 05:31
-
-
Save chadmcrowell/c8fcf57d994d97cab0f336046635aa22 to your computer and use it in GitHub Desktop.
Demo 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: demo-ingress | |
| annotations: | |
| nginx.ingress.kubernetes.io/rewrite-target: / | |
| spec: | |
| ingressClassName: nginx | |
| rules: | |
| - http: | |
| paths: | |
| - path: / | |
| pathType: Prefix | |
| backend: | |
| service: | |
| name: web-svc | |
| port: | |
| number: 80 | |
| - path: /api | |
| pathType: Prefix | |
| backend: | |
| service: | |
| name: api-svc | |
| port: | |
| number: 5678 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment