Switch pv-recycler container image to debian-base

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2022-03-03 09:53:34 -05:00
parent f757ab13af
commit 91ade9f318
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59
2 changed files with 7 additions and 2 deletions

View File

@ -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() {

View File

@ -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{