[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-01 (世界標準時間)。"],[],[],null,["There are several Kubernetes versions that have removed APIs. If you upgrade\na Google Distributed Cloud cluster to a new Kubernetes version, and your\nworkloads use any APIs that have been removed, your workloads could be\ndisrupted. Follow the steps given here to determine whether your workloads use\nany of the removed APIs for a given Kubernetes version before you upgrade your\ncluster.\n\nYou can see a list of deleted APIs in each Kubernetes version in\n[this doc](https://kubernetes.io/docs/reference/using-api/deprecation-guide/).\n\nDetermine if the API deletion affects you **Note:** the steps below require that Cloud Audit Logs is enabled and audit logs are streamed to [Google Cloud Observability](/stackdriver/docs).\n\nTo determine if the Kubernetes Service Accounts you use make calls to any\ndeleted APIs, run the supplied query in\n[Logs Explorer](/logging/docs/view/logs-explorer-interface):\n\n1. In the Google Cloud console, go to the **Logs Explorer** page in the\n **Logging** menu.\n\n [Go to Logs Explorer](https://console.cloud.google.com/logs/query)\n2. In the **Query** field, enter the following query:\n\n resource.labels.cluster_name = \"\u003cvar label=\"name of the cluster\" translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e\" AND\n logName = \"projects/\u003cvar label=\"the project ID\" translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e/logs/externalaudit.googleapis.com%2Factivity\" AND\n protoPayload.authenticationInfo.principalEmail!~(\"system:serviceaccount:kube-system:\") AND\n protoPayload.authenticationInfo.principalEmail!~(\"system:serviceaccount:gke-system:\") AND\n protoPayload.authenticationInfo.principalEmail!~(\"kube-admin\") AND\n protoPayload.authenticationInfo.principalEmail!~(\"kubernetes-admin\") AND\n labels.\"k8s.io/removed-release\"=\"\u003cvar label=\"k8s minor version\" translate=\"no\"\u003eKUBERNETES_MINOR_VERSION\u003c/var\u003e\"\n\n The output from this query shows if any of your Kubernetes Service Accounts\n make deleted API calls in the given KUBERNETES_MINOR_VERSION, for example,\n 1.25."]]