Skip to content

Commit

Permalink
Merge pull request #37083 from jmcshane/service-account-update
Browse files Browse the repository at this point in the history
Add callout for clearing `spec.serviceAccount` alias from workload templates
  • Loading branch information
k8s-ci-robot committed Oct 6, 2022
2 parents 44ba547 + 7adae8c commit 5b084a3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b084a3

Please sign in to comment.