mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Don't start any Typha instances if not using Calico
This commit is contained in:
parent
dbc5d91bf0
commit
199ecdbbdd
@ -66,6 +66,10 @@ function get-calico-typha-replicas {
|
||||
if [[ "${NUM_NODES}" -gt "500" ]]; then
|
||||
typha_count=5
|
||||
fi
|
||||
if [[ "${NETWORK_POLICY_PROVIDER:-}" != "calico" ]]; then
|
||||
# We're not configured to use Calico, so don't start any Typhas.
|
||||
typha_count=0
|
||||
fi
|
||||
echo "${typha_count}"
|
||||
}
|
||||
|
||||
|
@ -64,6 +64,10 @@ function get-calico-typha-replicas {
|
||||
if [[ "${NUM_NODES}" -gt "500" ]]; then
|
||||
typha_count=5
|
||||
fi
|
||||
if [[ "${NETWORK_POLICY_PROVIDER:-}" != "calico" ]]; then
|
||||
# We're not configured to use Calico, so don't start any Typhas.
|
||||
typha_count=0
|
||||
fi
|
||||
echo "${typha_count}"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user