From: Fatih Degirmenci Date: Fri, 31 Jul 2020 21:15:57 +0000 (+0000) Subject: Package busybox container image for ceph workaround X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=commitdiff_plain;h=59b8d3db83f0dbeb41ebac7a1ad076797cc6d100;hp=bae763edf77d9870274ee0253a14a9fc8d96cecb Package busybox container image for ceph workaround Busybox image is not packaged for offline deployments, causing pod to fail coming up as the image is not available in local docker registry. Adding image to list of images to pull and package. Busybox repo in the install template is also updated in order to get rid of duplicated path and adjust it based on the path it gets on local registry. Warning Failed 118s (x4 over 3m56s) kubelet, master0 Failed to pull image "engine.local/library/busybox/library/busybox:1.32.0": rpc error: code = Unknown desc = Error response from daemon: manifest for engine.local/library/busybox/library/busybox:1.32.0 not found Change-Id: Ibc173049c1bae5676dde2a686bd6092761dc645d --- diff --git a/apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2 b/apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2 index 089f729..7a3969a 100644 --- a/apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2 +++ b/apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2 @@ -24,6 +24,6 @@ spec: hostNetwork: true containers: - name: busybox - image: {{ busybox_repository }}/library/busybox:{{ busybox_version }} + image: {{ busybox_repository }}:{{ busybox_version }} command: ["/bin/sh"] args: ["-c", "while true ; do ip route | grep tunl0 | awk -F/ '{print $1}' | xargs -n 1 ping -c 1; sleep 5; done"] diff --git a/apps/ceph/kubespray/playbooks/roles/install/vars/offline-deployment.yaml b/apps/ceph/kubespray/playbooks/roles/install/vars/offline-deployment.yaml index aea92a7..841f878 100644 --- a/apps/ceph/kubespray/playbooks/roles/install/vars/offline-deployment.yaml +++ b/apps/ceph/kubespray/playbooks/roles/install/vars/offline-deployment.yaml @@ -19,7 +19,7 @@ ceph_repository: "{{ server_fqdn }}/ceph/ceph" rook_repository: "{{ server_fqdn }}/rook/ceph" -busybox_repository: "{{ server_fqdn }}/library/busybox" +busybox_repository: "{{ server_fqdn }}/busybox" cephcsi_repository: "{{ server_fqdn }}/cephcsi/cephcsi" csi_node_driver_registrar_repository: "{{ server_fqdn }}/k8scsi/csi-node-driver-registrar" csi_provisioner_repository: "{{ server_fqdn }}/k8scsi/csi-provisioner" diff --git a/playbooks/roles/package/defaults/main.yaml b/playbooks/roles/package/defaults/main.yaml index b519494..04f5325 100644 --- a/playbooks/roles/package/defaults/main.yaml +++ b/playbooks/roles/package/defaults/main.yaml @@ -110,6 +110,9 @@ other_images: kube-state-metrics: repo: quay.io/coreos/kube-state-metrics tag: "{{ kube_state_metrics_version }}" + busybox: + repo: docker.io/library/busybox + tag: "{{ busybox_version }}" repositories: # NOTE (fdegir): OpenDev Git Repositories - Using Nordix Mirrors