mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Allow setting --concurrent-service-syncs for kube-controller-manager in GCE startup scripts
This commit is contained in:
parent
33f911cb53
commit
f107e378c9
@ -338,3 +338,7 @@ fi
|
|||||||
|
|
||||||
# Optional: enable certificate rotation of the kubelet certificates.
|
# Optional: enable certificate rotation of the kubelet certificates.
|
||||||
ROTATE_CERTIFICATES="${ROTATE_CERTIFICATES:-}"
|
ROTATE_CERTIFICATES="${ROTATE_CERTIFICATES:-}"
|
||||||
|
|
||||||
|
# The number of services that are allowed to sync concurrently. Will be passed
|
||||||
|
# into kube-controller-manager via `--concurrent-service-syncs`
|
||||||
|
CONCURRENT_SERVICE_SYNCS="${CONCURRENT_SERVICE_SYNCS:-}"
|
||||||
|
@ -389,3 +389,7 @@ fi
|
|||||||
|
|
||||||
# Optional: enable certificate rotation of the kubelet certificates.
|
# Optional: enable certificate rotation of the kubelet certificates.
|
||||||
ROTATE_CERTIFICATES="${ROTATE_CERTIFICATES:-}"
|
ROTATE_CERTIFICATES="${ROTATE_CERTIFICATES:-}"
|
||||||
|
|
||||||
|
# The number of services that are allowed to sync concurrently. Will be passed
|
||||||
|
# into kube-controller-manager via `--concurrent-service-syncs`
|
||||||
|
CONCURRENT_SERVICE_SYNCS="${CONCURRENT_SERVICE_SYNCS:-}"
|
||||||
|
@ -1103,6 +1103,9 @@ function start-kube-controller-manager {
|
|||||||
if [[ -n "${SERVICE_CLUSTER_IP_RANGE:-}" ]]; then
|
if [[ -n "${SERVICE_CLUSTER_IP_RANGE:-}" ]]; then
|
||||||
params+=" --service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"
|
params+=" --service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${CONCURRENT_SERVICE_SYNCS:-}" ]]; then
|
||||||
|
params+=" --concurrent-service-syncs=${CONCURRENT_SERVICE_SYNCS}"
|
||||||
|
fi
|
||||||
if [[ "${NETWORK_PROVIDER:-}" == "kubenet" ]]; then
|
if [[ "${NETWORK_PROVIDER:-}" == "kubenet" ]]; then
|
||||||
params+=" --allocate-node-cidrs=true"
|
params+=" --allocate-node-cidrs=true"
|
||||||
elif [[ -n "${ALLOCATE_NODE_CIDRS:-}" ]]; then
|
elif [[ -n "${ALLOCATE_NODE_CIDRS:-}" ]]; then
|
||||||
|
@ -1581,6 +1581,9 @@ function start-kube-controller-manager {
|
|||||||
if [[ -n "${SERVICE_CLUSTER_IP_RANGE:-}" ]]; then
|
if [[ -n "${SERVICE_CLUSTER_IP_RANGE:-}" ]]; then
|
||||||
params+=" --service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"
|
params+=" --service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${CONCURRENT_SERVICE_SYNCS:-}" ]]; then
|
||||||
|
params+=" --concurrent-service-syncs=${CONCURRENT_SERVICE_SYNCS}"
|
||||||
|
fi
|
||||||
if [[ "${NETWORK_PROVIDER:-}" == "kubenet" ]]; then
|
if [[ "${NETWORK_PROVIDER:-}" == "kubenet" ]]; then
|
||||||
params+=" --allocate-node-cidrs=true"
|
params+=" --allocate-node-cidrs=true"
|
||||||
elif [[ -n "${ALLOCATE_NODE_CIDRS:-}" ]]; then
|
elif [[ -n "${ALLOCATE_NODE_CIDRS:-}" ]]; then
|
||||||
|
@ -116,3 +116,7 @@ ENABLE_POD_PRIORITY="${ENABLE_POD_PRIORITY:-}"
|
|||||||
if [[ "${ENABLE_POD_PRIORITY}" == "true" ]]; then
|
if [[ "${ENABLE_POD_PRIORITY}" == "true" ]]; then
|
||||||
FEATURE_GATES="${FEATURE_GATES},PodPriority=true"
|
FEATURE_GATES="${FEATURE_GATES},PodPriority=true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# The number of services that are allowed to sync concurrently. Will be passed
|
||||||
|
# into kube-controller-manager via `--concurrent-service-syncs`
|
||||||
|
CONCURRENT_SERVICE_SYNCS="${CONCURRENT_SERVICE_SYNCS:-}"
|
||||||
|
Loading…
Reference in New Issue
Block a user