Browse Source

Raise typha max connections to 300 (#5527)

Raises limit from 100 to 300 because the default is far too low
and the pod can handle 300 with the given resources.

Change-Id: Ib1eec10da3d09d198933fcfe87291587e58d7cdb
pull/5528/head
Matthew Mosesohn 5 years ago
committed by Kubernetes Prow Robot
parent
commit
b35b816287
3 changed files with 12 additions and 0 deletions
  1. 4
      inventory/sample/group_vars/k8s-cluster/k8s-net-calico.yml
  2. 6
      roles/network_plugin/calico/defaults/main.yml
  3. 2
      roles/network_plugin/calico/templates/calico-typha.yml.j2

4
inventory/sample/group_vars/k8s-cluster/k8s-net-calico.yml

@ -40,5 +40,9 @@
# Generate TLS certs for secure typha<->calico-node communication
# typha_secure: false
# Scaling typha: 1 replica per 100 nodes is adequate
# Number of typha replicas
# typha_replicas: 1
# Set max typha connections
# typha_max_connections_lower_limit: 300

6
roles/network_plugin/calico/defaults/main.yml

@ -74,9 +74,15 @@ kube_etcd_key_file: node-{{ inventory_hostname }}-key.pem
# Use typha (only with kdd)
typha_enabled: false
# Scaling typha: 1 replica per 100 nodes is adequate
# Number of typha replicas
typha_replicas: 1
# Set max typha connections
typha_max_connections_lower_limit: 300
# Generate certifcates for typha<->calico-node communication
typha_secure: false

2
roles/network_plugin/calico/templates/calico-typha.yml.j2

@ -82,6 +82,8 @@ spec:
value: "kubernetes"
- name: TYPHA_HEALTHENABLED
value: "true"
- name: TYPHA_MAXCONNECTIONSLOWERLIMIT
value: "{{ typha_max_connections_lower_limit }}"
{% if typha_secure %}
- name: TYPHA_CAFILE
value: /etc/ca/ca.crt

Loading…
Cancel
Save