Merge pull request #37083 from jmcshane/service-account-update

Add callout for clearing `spec.serviceAccount` alias from workload templates
pull/37193/head
Kubernetes Prow Robot 2022-10-06 08:35:53 -07:00 committed by GitHub
commit 5b084a3166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,12 @@ The service account has to exist at the time the pod is created, or it will be r
You cannot update the service account of an already created pod.
{{< note >}}
The `spec.serviceAccount` field is a deprecated alias for `spec.serviceAccountName`.
If you want to remove the fields from a workload resource, set both fields to empty explicitly
on the [pod template](/docs/concepts/workloads/pods#pod-templates).
{{< /note >}}
You can clean up the service account from this example like this:
```shell