Skip to content

Commit

Permalink
ingress yaml for kubernetes 1.19 and onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Nov 6, 2020
1 parent 4febb9b commit 6f1c96d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ingress/ingress-k8s1.19onwards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# An Ingress with 2 hosts and 3 endpoints
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: helloworld-rules
spec:
rules:
- host: helloworld-v1.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: helloworld-v1
port:
number: 80
- host: helloworld-v2.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: helloworld-v2
port:
number: 80

0 comments on commit 6f1c96d

Please sign in to comment.