File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,13 @@ runs:
154154 #
155155 # ref: https://rancher.com/docs/k3s/latest/en/installation/network-options/
156156 #
157+ # With k3s 1.29 of recent versions, and calico v3.27.3, we have added
158+ # DirectoryOrCreate to the hostPath volume to avoid
159+ # https://github.com/jupyterhub/action-k3s-helm/issues/112. This is reported
160+ # to calcio in https://github.com/projectcalico/calico/issues/8773, and
161+ # could perhaps be closed if we bump to a calico version having resolve
162+ # this.
163+ #
157164 - name : Setup calico
158165 run : |
159166 echo "::group::Setup calico"
@@ -163,6 +170,12 @@ runs:
163170 "container_settings": {\
164171 "allow_ip_forwarding": true\
165172 },' \
173+ | sed '/path: \/opt\/cni\/bin/a\
174+ type: DirectoryOrCreate' \
175+ | sed '/path: \/var\/run\/calico/a\
176+ type: DirectoryOrCreate' \
177+ | sed '/path: \/var\/lib\/calico/a\
178+ type: DirectoryOrCreate' \
166179 | kubectl apply -f -
167180 echo "::endgroup::"
168181 shell : bash
You can’t perform that action at this time.
0 commit comments