Skip to content

Commit

Permalink
Merge pull request #113 from consideRatio/pr/update-calico
Browse files Browse the repository at this point in the history
Workaround calcio not declaring DirectoryOrCreate on hostPath volumes
  • Loading branch information
consideRatio committed Apr 28, 2024
2 parents 2b2ba08 + 18c317a commit d0311b2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions action.yml
Expand Up @@ -154,6 +154,13 @@ runs:
#
# ref: https://rancher.com/docs/k3s/latest/en/installation/network-options/
#
# With k3s 1.29 of recent versions, and calico v3.27.3, we have added
# DirectoryOrCreate to the hostPath volume to avoid
# https://github.com/jupyterhub/action-k3s-helm/issues/112. This is reported
# to calcio in https://github.com/projectcalico/calico/issues/8773, and
# could perhaps be closed if we bump to a calico version having resolve
# this.
#
- name: Setup calico
run: |
echo "::group::Setup calico"
Expand All @@ -163,6 +170,12 @@ runs:
"container_settings": {\
"allow_ip_forwarding": true\
},' \
| sed '/path: \/opt\/cni\/bin/a\
type: DirectoryOrCreate' \
| sed '/path: \/var\/run\/calico/a\
type: DirectoryOrCreate' \
| sed '/path: \/var\/lib\/calico/a\
type: DirectoryOrCreate' \
| kubectl apply -f -
echo "::endgroup::"
shell: bash
Expand Down

0 comments on commit d0311b2

Please sign in to comment.