mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #108490 from dims/switch-pv-recycler-container-image-to-debian-base
Switch pv-recycler container image to debian-base
This commit is contained in:
commit
6eca8cc472
@ -3036,7 +3036,7 @@ spec:
|
||||
- name: vol
|
||||
containers:
|
||||
- name: pv-recycler
|
||||
image: k8s.gcr.io/busybox:1.27
|
||||
image: k8s.gcr.io/debian-base:v2.0.0
|
||||
command:
|
||||
- /bin/sh
|
||||
args:
|
||||
@ -3046,6 +3046,11 @@ spec:
|
||||
- name: vol
|
||||
mountPath: /scrub
|
||||
EOF
|
||||
|
||||
# fixup the alternate registry if specified
|
||||
if [[ -n "${KUBE_ADDON_REGISTRY:-}" ]]; then
|
||||
sed -i -e "s@k8s.gcr.io@${KUBE_ADDON_REGISTRY}@g" "${PV_RECYCLER_OVERRIDE_TEMPLATE}"
|
||||
fi
|
||||
}
|
||||
|
||||
function wait-till-apiserver-ready() {
|
||||
|
@ -1083,7 +1083,7 @@ func NewPersistentVolumeRecyclerPodTemplate() *v1.Pod {
|
||||
Containers: []v1.Container{
|
||||
{
|
||||
Name: "pv-recycler",
|
||||
Image: "busybox:1.27",
|
||||
Image: "k8s.gcr.io/debian-base:v2.0.0",
|
||||
Command: []string{"/bin/sh"},
|
||||
Args: []string{"-c", "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/* && test -z \"$(ls -A /scrub)\" || exit 1"},
|
||||
VolumeMounts: []v1.VolumeMount{
|
||||
|
Loading…
Reference in New Issue
Block a user