Skip to content

Commit

Permalink
Add dualstack flag if multiple CIDR are configured
Browse files Browse the repository at this point in the history
  • Loading branch information
superseb committed Jun 27, 2023
1 parent 622f06b commit 30ee58a
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 @@ -94,7 +94,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 30ee58a

Please sign in to comment.