Skip to content

Instantly share code, notes, and snippets.

@3ng1n33r
Created June 9, 2024 15:53
Show Gist options
  • Save 3ng1n33r/49b53928c0a890af1fc87ccaebc40b52 to your computer and use it in GitHub Desktop.
Save 3ng1n33r/49b53928c0a890af1fc87ccaebc40b52 to your computer and use it in GitHub Desktop.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: canary-demo
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: canary-demo.lvh.me
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: canary-demo
port:
name: http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment