mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Merge pull request #46327 from supereagle/mark-network-plugin-dir-deprecated
Automatic merge from submit-queue (batch tested with PRs 46327, 47166) mark --network-plugin-dir deprecated for kubelet **What this PR does / why we need it**: **Which issue this PR fixes** : fixes #43967 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
@@ -33,8 +33,10 @@ POD_MANIFEST_PATH=${POD_MANIFEST_PATH:-"/var/run/kubernetes/static-pods"}
|
||||
KUBELET_FLAGS=${KUBELET_FLAGS:-""}
|
||||
# Name of the network plugin, eg: "kubenet"
|
||||
NET_PLUGIN=${NET_PLUGIN:-""}
|
||||
# Place the binaries required by NET_PLUGIN in this directory, eg: "/home/kubernetes/bin".
|
||||
NET_PLUGIN_DIR=${NET_PLUGIN_DIR:-""}
|
||||
# Place the config files and binaries required by NET_PLUGIN in these directory,
|
||||
# eg: "/etc/cni/net.d" for config files, and "/opt/cni/bin" for binaries.
|
||||
CNI_CONF_DIR=${CNI_CONF_DIR:-""}
|
||||
CNI_BIN_DIR=${CNI_BIN_DIR:-""}
|
||||
SERVICE_CLUSTER_IP_RANGE=${SERVICE_CLUSTER_IP_RANGE:-10.0.0.0/24}
|
||||
FIRST_SERVICE_CLUSTER_IP=${FIRST_SERVICE_CLUSTER_IP:-10.0.0.1}
|
||||
# if enabled, must set CGROUP_ROOT
|
||||
@@ -625,9 +627,14 @@ function start_kubelet {
|
||||
auth_args="${auth_args} --client-ca-file=${CLIENT_CA_FILE}"
|
||||
fi
|
||||
|
||||
net_plugin_dir_args=""
|
||||
if [[ -n "${NET_PLUGIN_DIR}" ]]; then
|
||||
net_plugin_dir_args="--network-plugin-dir=${NET_PLUGIN_DIR}"
|
||||
cni_conf_dir_args=""
|
||||
if [[ -n "${CNI_CONF_DIR}" ]]; then
|
||||
cni_conf_dir_args="--cni-conf-dir=${CNI_CONF_DIR}"
|
||||
fi
|
||||
|
||||
cni_bin_dir_args=""
|
||||
if [[ -n "${CNI_BIN_DIR}" ]]; then
|
||||
cni_bin_dir_args="--cni-bin-dir=${CNI_BIN_DIR}"
|
||||
fi
|
||||
|
||||
container_runtime_endpoint_args=""
|
||||
@@ -664,7 +671,8 @@ function start_kubelet {
|
||||
--pod-manifest-path="${POD_MANIFEST_PATH}" \
|
||||
${auth_args} \
|
||||
${dns_args} \
|
||||
${net_plugin_dir_args} \
|
||||
${cni_conf_dir_args} \
|
||||
${cni_bin_dir_args} \
|
||||
${net_plugin_args} \
|
||||
${container_runtime_endpoint_args} \
|
||||
${image_service_endpoint_args} \
|
||||
|
Reference in New Issue
Block a user