Skip to content

Instantly share code, notes, and snippets.

@ahndmal
Created December 18, 2021 14:00
Show Gist options
  • Save ahndmal/03332f4a427665b25c508b6915d2afe1 to your computer and use it in GitHub Desktop.
Save ahndmal/03332f4a427665b25c508b6915d2afe1 to your computer and use it in GitHub Desktop.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-wildcard-host
spec:
rules:
- host: "andmal.cyou"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: sb-simple-deploy
port:
number: 8080
- host: "*.foo.com"
http:
paths:
- pathType: Prefix
path: "/foo"
backend:
service:
name: service2
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment