{
  "schemaVersion": "ebb.rule.v1",
  "id": "terraform.gke.end-of-life-1.31",
  "ecosystem": "terraform",
  "purl": "pkg:generic/google-kubernetes-engine",
  "affectedVersions": "vers:semver/>=1.31.0|<1.32.0",
  "event": "end-of-life",
  "severity": "high",
  "title": "GKE 1.31 is past end of extended support",
  "summary": "GKE 1.31 reached the end of standard support on 2026-01-16 and the end of extended support on 2026-10-22. GKE no longer provides patches for this minor version.",
  "replacement": "GKE 1.35 or later",
  "deadline": "2026-10-22",
  "sources": [
    {
      "title": "GKE versioning and support",
      "url": "https://cloud.google.com/kubernetes-engine/versioning",
      "accessedAt": "2026-10-26"
    },
    {
      "title": "GKE release schedule",
      "url": "https://cloud.google.com/kubernetes-engine/docs/release-schedule",
      "accessedAt": "2026-10-26"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-26",
    "reviewedAt": "2026-10-26",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "GKE upgrades one minor version at a time and may auto-upgrade a cluster whose version reaches end of support.",
      "Only a cluster in the Extended channel keeps receiving security patches past the end of standard support.",
      "Node pools and the control plane must be on compatible versions, so raise both in the same change."
    ],
    "steps": [
      {
        "id": "raise-min-master-version",
        "title": "Raise the control-plane version",
        "instructions": "Set min_master_version to the release in the replacement, or remove it so the cluster follows its release channel.",
        "targets": "declaration"
      },
      {
        "id": "raise-node-pools",
        "title": "Raise the node pools",
        "instructions": "Raise google_container_node_pool version, or let the release channel manage it, so nodes match the control plane.",
        "targets": "all"
      },
      {
        "id": "review-removed-apis",
        "title": "Remove APIs the new version deleted",
        "instructions": "Read the Kubernetes deprecation guide for every minor version crossed and replace removed API versions in manifests and Helm charts before applying.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "terraform init -backend=false && terraform validate",
        "purpose": "Initialize without touching remote state and check that the configuration is valid."
      },
      {
        "command": "terraform plan",
        "purpose": "Review the plan and confirm the control-plane and node-pool changes are the intended ones."
      },
      {
        "command": "gcloud container clusters describe <cluster> --zone <zone> --format='value(currentMasterVersion)'",
        "purpose": "Confirm the control plane reports the new version."
      },
      {
        "command": "kubectl version",
        "purpose": "Confirm kubectl and the API server agree on the version."
      }
    ]
  }
}
