How to add a Configmap to a specific Pod In a StatefulSet?
问题 I'd like to know how I can add a ConfigMap to a specific pod spawned by a StatefulSet. I've looked at the spec and I can't figure out how to ensure that a pod only mounts a ConfigMap with a specific label. I've already got a workaround ready in the form of a container. However I'd still like to know if this is possible out of the box. 回答1: You can't threat a pod inside the same StatefulSet as a special pod. Simply because you can only specify a single PodSpec that's valid for the whole set.