Package busybox container image for ceph workaround 99/5599/4
authorFatih Degirmenci <fatih.degirmenci@est.tech>
Fri, 31 Jul 2020 21:15:57 +0000 (21:15 +0000)
committerFatih Degirmenci <fatih.degirmenci@est.tech>
Sat, 1 Aug 2020 08:38:32 +0000 (08:38 +0000)
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

apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2
apps/ceph/kubespray/playbooks/roles/install/vars/offline-deployment.yaml
playbooks/roles/package/defaults/main.yaml

index 089f729..7a3969a 100644 (file)
@@ -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"]
index aea92a7..841f878 100644 (file)
@@ -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"
index b519494..04f5325 100644 (file)
@@ -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