{
  "schemaVersion": "ebb.rule.v1",
  "id": "kubernetes.networking-k8s-io.ingress.v1beta1.removed",
  "ecosystem": "kubernetes",
  "purl": "pkg:generic/kubernetes/networking.k8s.io/Ingress",
  "affectedVersions": "vers:semver/1.0.0-beta.1",
  "event": "removed",
  "severity": "high",
  "title": "Ingress networking.k8s.io/v1beta1 is no longer served",
  "summary": "The Kubernetes Deprecated API Migration Guide states that the networking.k8s.io/v1beta1 API version of Ingress is no longer served as of v1.22, which was released on 2021-08-04.",
  "replacement": "networking.k8s.io/v1 Ingress, available since v1.19",
  "deadline": "2021-08-04",
  "sources": [
    {
      "title": "Kubernetes Deprecated API Migration Guide",
      "url": "https://kubernetes.io/docs/reference/using-api/deprecation-guide/",
      "accessedAt": "2026-10-17"
    },
    {
      "title": "Kubernetes 1.22: Reaching New Peaks (release announcement, 2021-08-04)",
      "url": "https://kubernetes.io/blog/2021/08/04/kubernetes-1-22-release-announcement/",
      "accessedAt": "2026-10-17"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-17",
    "reviewedAt": "2026-10-17",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep routing behavior unchanged: the same hosts, paths, and backends.",
      "In networking.k8s.io/v1, spec.backend is renamed spec.defaultBackend, and each backend's serviceName and servicePort become service.name and service.port.number (or service.port.name for a named port).",
      "pathType is required on every path in networking.k8s.io/v1; use ImplementationSpecific to keep the old undefined behavior, or Prefix or Exact if that is what was intended.",
      "If an Ingress is selected by an ingress class annotation, check the IngressClass resource still matches."
    ],
    "steps": [
      {
        "id": "update-api-version",
        "title": "Change the Ingress apiVersion",
        "instructions": "Change the reported `apiVersion` to `networking.k8s.io/v1`.",
        "targets": "declaration"
      },
      {
        "id": "rewrite-backends",
        "title": "Rewrite backends and paths",
        "instructions": "Rename spec.backend to spec.defaultBackend, convert serviceName and servicePort to the service.name and service.port forms, and add a pathType to every path.",
        "targets": "declaration"
      },
      {
        "id": "align-other-manifests",
        "title": "Align other Ingress declarations",
        "instructions": "Update every other manifest, Helm template, and kustomize patch or target that names the old Ingress API version, so the repository agrees.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "kubeconform -strict -summary <manifest-paths>",
        "purpose": "Validate the migrated manifests against the schemas of the target Kubernetes version."
      },
      {
        "command": "kubectl apply --dry-run=server -f <manifest-path>",
        "purpose": "Ask a cluster on the target version to accept the migrated manifest without applying it."
      },
      {
        "command": "helm template <chart-path> | kubeconform -strict -",
        "purpose": "For a Helm chart, render it and validate the output."
      }
    ]
  }
}
