Migrate Ingress to use networking.k8s.io/v1 API
@@ -98,7 +98,7 @@ function(
};
local ingress = {
- apiVersion: 'extensions/v1beta1',
+ apiVersion: 'networking.k8s.io/v1',
kind: 'Ingress',
metadata: {
name: fullyQualifiedName,
@@ -123,9 +123,15 @@ function(
http: {
paths: [
{
+ pathType: 'Prefix',
+ path: '/',
backend: {
- serviceName: fullyQualifiedName,
- servicePort: ingressPort
+ service: {
+ name: fullyQualifiedName,
+ port: {
+ number: ingressPort
+ }
+ }
}
}
]
