Skip to content

Commit 7adae8c

Browse files
author
jmcshane
committed
Add callout for clearing spec.serviceAccount alias from workload templates
1 parent cc432a2 commit 7adae8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/en/docs/tasks/configure-pod-container/configure-service-account.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ The service account has to exist at the time the pod is created, or it will be r
126126

127127
You cannot update the service account of an already created pod.
128128

129+
{{< note >}}
130+
The `spec.serviceAccount` field is a deprecated alias for `spec.serviceAccountName`.
131+
If you want to remove the fields from a workload resource, set both fields to empty explicitly
132+
on the [pod template](/docs/concepts/workloads/pods#pod-templates).
133+
{{< /note >}}
134+
129135
You can clean up the service account from this example like this:
130136

131137
```shell

0 commit comments

Comments
 (0)