Skip to content

Commit

Permalink
Merge pull request #163 from superseb/cridockerd_dualstack
Browse files Browse the repository at this point in the history
Add dualstack flag if multiple CIDR are configured
  • Loading branch information
superseb authored Sep 19, 2023
2 parents 68fc706 + 30ee58a commit 1a70ace
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ if [ "$1" = "kubelet" ]; then
# cri-dockerd v0.3.1 requires unix socket or tcp endpoint, update old endpoint passed by rke
CONTAINER_RUNTIME_ENDPOINT="unix://$CONTAINER_RUNTIME_ENDPOINT"
fi
/opt/rke-tools/bin/cri-dockerd --network-plugin="cni" --cni-conf-dir="/etc/cni/net.d" --cni-bin-dir="/opt/cni/bin" ${RKE_KUBELET_PAUSEIMAGE} --container-runtime-endpoint=$CONTAINER_RUNTIME_ENDPOINT &
EXTRA_FLAGS=""
if [ "${RKE_KUBELET_CRIDOCKERD_DUALSTACK}" == "true" ]; then
EXTRA_FLAGS="--ipv6-dual-stack"
fi
/opt/rke-tools/bin/cri-dockerd --network-plugin="cni" --cni-conf-dir="/etc/cni/net.d" --cni-bin-dir="/opt/cni/bin" ${RKE_KUBELET_PAUSEIMAGE} --container-runtime-endpoint=$CONTAINER_RUNTIME_ENDPOINT ${EXTRA_FLAGS} &

# wait for cri-dockerd to start as kubelet depends on it
echo "Sleeping 10 waiting for cri-dockerd to start"
Expand Down

0 comments on commit 1a70ace

Please sign in to comment.