mirror of
https://github.com/wardviaene/kubernetes-course.git
synced 2026-07-10 14:19:31 +00:00
replace ingress.yml with newer version
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
# 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
|
||||
@@ -1,5 +1,5 @@
|
||||
# An Ingress with 2 hosts and 3 endpoints
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: helloworld-rules
|
||||
@@ -9,13 +9,19 @@ spec:
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
serviceName: helloworld-v1
|
||||
servicePort: 80
|
||||
service:
|
||||
name: helloworld-v1
|
||||
port:
|
||||
number: 80
|
||||
- host: helloworld-v2.example.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
serviceName: helloworld-v2
|
||||
servicePort: 80
|
||||
service:
|
||||
name: helloworld-v2
|
||||
port:
|
||||
number: 80
|
||||
|
||||
Reference in New Issue
Block a user