Skip to content

Commit

Permalink
Merge pull request #204 from vardhaman22/add-stream-server-addr
Browse files Browse the repository at this point in the history
added  --streaming-bind-addr option for cri-dockerd
  • Loading branch information
vardhaman22 committed Aug 30, 2024
2 parents 64b55c6 + 1fdbf37 commit 817e581
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@ if [ "$1" = "kubelet" ]; then
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} &
if [ -z "${CRIDOCKERD_STREAM_SERVER_ADDRESS}" ]; then
CRIDOCKERD_STREAM_SERVER_ADDRESS="127.0.0.1"
fi
if [ -z "${CRIDOCKERD_STREAM_SERVER_PORT}" ]; then
CRIDOCKERD_STREAM_SERVER_PORT="10010"
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 --streaming-bind-addr=${CRIDOCKERD_STREAM_SERVER_ADDRESS}:${CRIDOCKERD_STREAM_SERVER_PORT} ${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 817e581

Please sign in to comment.