Merge pull request #28623 from chenxuc/staticPod

static pod not support configmap or secret
This commit is contained in:
Kubernetes Prow Robot
2021-08-10 03:23:17 -07:00
committed by GitHub
4 changed files with 23 additions and 1 deletions
@@ -833,7 +833,10 @@ are obtained from the API server.
This includes any Pods created using `kubectl`, or indirectly via a replication
controller. It does not include Pods created as a result of the kubelet
`--manifest-url` flag, its `--config` flag, or its REST API (these are
not common ways to create Pods.)
not common ways to create Pods).
The `spec` of a {{< glossary_tooltip text="static Pod" term_id="static-pod" >}} cannot refer to a Secret
or any other API objects.
Secrets must be created before they are consumed in Pods as environment
variables unless they are marked as optional. References to secrets that do