mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
Merge pull request #48004 from dnardo/gke
Automatic merge from submit-queue (batch tested with PRs 48004, 48205, 48130, 48207) Do not set CNI in cases where there is a private master and network policy provider is set. **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note In GCE and in a "private master" setup, do not set the network-plugin provider to CNI by default if a network policy provider is given. ```
This commit is contained in:
commit
63d4af44ac
@ -912,7 +912,11 @@ function start-kubelet {
|
|||||||
flags+=" --cni-bin-dir=/home/kubernetes/bin"
|
flags+=" --cni-bin-dir=/home/kubernetes/bin"
|
||||||
if [[ "${NETWORK_POLICY_PROVIDER:-}" == "calico" ]]; then
|
if [[ "${NETWORK_POLICY_PROVIDER:-}" == "calico" ]]; then
|
||||||
# Calico uses CNI always.
|
# Calico uses CNI always.
|
||||||
flags+=" --network-plugin=cni"
|
if [[ "${KUBERNETES_PRIVATE_MASTER:-}" == "true" ]]; then
|
||||||
|
flags+=" --network-plugin=${NETWORK_PROVIDER}"
|
||||||
|
else
|
||||||
|
flags+=" --network-plugin=cni"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# Otherwise use the configured value.
|
# Otherwise use the configured value.
|
||||||
flags+=" --network-plugin=${NETWORK_PROVIDER}"
|
flags+=" --network-plugin=${NETWORK_PROVIDER}"
|
||||||
|
Loading…
Reference in New Issue
Block a user