replace ingress.yml with newer version

This commit is contained in:
Edward Viaene
2021-10-29 16:55:50 -04:00
parent 4aba5faca5
commit 5c48de0b99
2 changed files with 11 additions and 32 deletions

View File

@@ -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

View File

@@ -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