diff --git a/Ingress/fanout.yaml b/Ingress/fanout.yaml index 4839119..f1e5a10 100644 --- a/Ingress/fanout.yaml +++ b/Ingress/fanout.yaml @@ -1,5 +1,5 @@ --- -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress-fanout @@ -12,9 +12,13 @@ spec: paths: - path: /path1 backend: - serviceName: testsvc1 - servicePort: 4201 + service: + name: testsvc1 + port: + number: 4201 - path: /path2 backend: - serviceName: testsvc2 - servicePort: 4202 + service: + name: testsvc2 + port: + number: 4202 diff --git a/Ingress/ingress.yaml b/Ingress/ingress.yaml index f41678b..9f2abcd 100644 --- a/Ingress/ingress.yaml +++ b/Ingress/ingress.yaml @@ -1,9 +1,11 @@ --- -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: test-ingress spec: backend: - serviceName: testsvc - servicePort: 80 + service: + name: testsvc + port: + number: 80 diff --git a/Ingress/nohost.yaml b/Ingress/nohost.yaml index 7487a5e..7708bb3 100644 --- a/Ingress/nohost.yaml +++ b/Ingress/nohost.yaml @@ -1,5 +1,5 @@ --- -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: name-virtual-host-ingress @@ -9,17 +9,23 @@ spec: http: paths: - backend: - serviceName: testsvc1 - servicePort: 80 + service: + name: testsvc1 + port: + number: 80 - host: second.foo.com http: paths: - backend: - serviceName: testsvc2 - servicePort: 80 + service: + name: testsvc2 + port: + number: 80 # No host supplied here - http: paths: - backend: - serviceName: testsvc3 - servicePort: 80 + service: + name: testsvc3 + port: + number: 80