diff --git a/.k8s/production/ingress.yaml b/.k8s/production/ingress.yaml index d38b0b38ac9d..8bddaa787c21 100644 --- a/.k8s/production/ingress.yaml +++ b/.k8s/production/ingress.yaml @@ -1,15 +1,17 @@ -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: graph-docs - annotations: - kubernetes.io/ingress.class: nginx spec: + ingressClassName: nginx rules: - host: thegraph.com http: paths: - - path: /docs - backend: - serviceName: graph-docs - servicePort: http + - backend: + service: + name: graph-docs + port: + name: http + path: /docs + pathType: Prefix diff --git a/.k8s/staging/ingress.yaml b/.k8s/staging/ingress.yaml index 8f9966954185..f04f058efb01 100644 --- a/.k8s/staging/ingress.yaml +++ b/.k8s/staging/ingress.yaml @@ -1,15 +1,17 @@ -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: graph-docs - annotations: - kubernetes.io/ingress.class: nginx spec: + ingressClassName: nginx rules: - host: staging.thegraph.com http: paths: - - path: /docs - backend: - serviceName: graph-docs - servicePort: http + - backend: + service: + name: graph-docs + port: + name: http + path: /docs + pathType: Prefix