I want to be able to override the gcr.io/google_containers/pause
container only in a single pod. I'm having trouble finding in the documentation if it's possible at all.
I'm trying to set up a VPN client container/pod and use it's networking namespace to connect to an remote DC, but only for a single pod group.
The closest I have found is the --pod-infra-container-image
flag on kubelet, which would modify it for all pods.
不可以,该容器的设计对于所有吊舱都是统一的,并不打算在API用户的控制之下。
As the other answer suggests, this is not configurable per pod.
If you really want to achieve this through the custom infra container image and you have multiple nodes (and are willing to dedicate one node for this purpose), you can configure one node to use your custom infra container image. You should then label and taint the node such that
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.