Skip to content

Instantly share code, notes, and snippets.

@timhberry
Last active July 18, 2022 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timhberry/ae24029c4a141cb679f70d1c0b5e952f to your computer and use it in GitHub Desktop.
Save timhberry/ae24029c4a141cb679f70d1c0b5e952f to your computer and use it in GitHub Desktop.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: simple-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: /apache
pathType: Prefix
backend:
service:
name: apache-deployment
port:
number: 80
- path: /caddy
pathType: Prefix
backend:
service:
name: caddy-deployment
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment