WanLinghao 2018-06-29 09:48:20 +08:00 committed by k8s-ci-robot
parent 8549c510e0
commit 6d39150d1f
2 changed files with 17 additions and 2 deletions

View File

@ -8,7 +8,13 @@ weight: 70
---
{{% capture overview %}}
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.
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`, `downwardAPI`,
and `serviceAccountToken` volumes can be projected.
{{< note >}}
`serviceAccountToken` is not a volume type.
{{< /note >}}
{{% /capture %}}
{{% capture prerequisites %}}

View File

@ -248,4 +248,13 @@ spec:
TODO: Test and explain how to use additional non-K8s secrets with an existing service account.
-->
{{% /capture %}}
## Service Account Volume Projection
Kubernetes 1.11 and higher supports a new way to project a service account token into a Pod.
You can specify a token request with audiences, expirationSeconds. The service account token
becomes invalid when the Pod is deleted. A Projected Volume named
[ServiceAccountToken](/docs/concepts/storage/volumes/#projected) requests and stores the token.
{{% /capture %}}