Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Created February 19, 2026 05:20
Show Gist options
  • Select an option

  • Save chadmcrowell/f987c7a646fed3fe6c6ed9fabcbb21df to your computer and use it in GitHub Desktop.

Select an option

Save chadmcrowell/f987c7a646fed3fe6c6ed9fabcbb21df to your computer and use it in GitHub Desktop.
Ingress
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