Skip to content

Commit

Permalink
Handle no longer available /opt/cni/bin folder on k3s host machines
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 28, 2024
1 parent cd1c86d commit d7cbf2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ 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.
#
- name: Setup calico
run: |
echo "::group::Setup calico"
Expand All @@ -163,6 +167,8 @@ runs:
"container_settings": {\
"allow_ip_forwarding": true\
},' \
| sed '/path: \/opt\/cni\/bin/a\
type: DirectoryOrCreate' \
| kubectl apply -f -
echo "::endgroup::"
shell: bash
Expand Down

0 comments on commit d7cbf2f

Please sign in to comment.