Skip to content

Commit 11adda7

Browse files
committed
add description for service account token
ref:kubernetes/kubernetes#63819 #9182
1 parent 8549c51 commit 11adda7

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

content/en/docs/tasks/configure-pod-container/configure-projected-volume-storage.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ weight: 70
88
---
99

1010
{{% capture overview %}}
11-
This page shows how to use a [`projected`](/docs/concepts/storage/volumes/#projected) volume to mount several existing volume sources into the same directory. Currently, `secret`, `configMap`, and `downwardAPI` volumes can be projected.
11+
This page shows how to use a [`projected`](/docs/concepts/storage/volumes/#projected) volume to mount
12+
several existing volume sources into the same directory. Currently, `secret`, `configMap`, `downwardAPI`,
13+
and `serviceAccountToken` volumes can be projected.
14+
15+
{{< note >}}
16+
`serviceAccountToken` is not a volume type.
17+
{{< /note >}}
1218
{{% /capture %}}
1319

1420
{{% capture prerequisites %}}

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,13 @@ spec:
248248
TODO: Test and explain how to use additional non-K8s secrets with an existing service account.
249249
-->
250250
251-
{{% /capture %}}
251+
## Service Account Volume Projection
252+
253+
Kubernetes 1.11 and higher supports a new way to project a service account token into a Pod.
254+
You can specify a token request with audiences, expirationSeconds. The service account token
255+
becomes invalid when the Pod is deleted. A Projected Volume named
256+
[ServiceAccountToken](/docs/concepts/storage/volumes/#projected) requests and stores the token.
257+
258+
{{% /capture %}}
259+
260+

0 commit comments

Comments
 (0)