diff --git a/promenade/templates/include/genesis-etcd/server-container.yaml b/promenade/templates/include/genesis-etcd/server-container.yaml index d8d2fbbb..2a119b3b 100644 --- a/promenade/templates/include/genesis-etcd/server-container.yaml +++ b/promenade/templates/include/genesis-etcd/server-container.yaml @@ -53,6 +53,16 @@ value: $(ETCD_CERT_FILE) - name: ETCDCTL_KEY value: $(ETCD_KEY_FILE) + - name: ETCD_HEARTBEAT_INTERVAL + value: {{ config['Genesis:etcd.heartbeat_interval'] }} + - name: ETCD_ELECTION_TIMEOUT + value: {{ config['Genesis:etcd.election_timeout'] }} + - name: ETCD_SNAPSHOT_COUNT + value: {{ config['Genesis:etcd.election_timeout'] }} + - name: ETCD_CIPHER_SUITES + value: {{ config['Genesis:etcd.cipher_suites'] }} + - name: GOMAXPROCS + value: {{ config['Genesis:etcd.gomaxprocs'] }} ports: - name: client containerPort: {{ client_port }} diff --git a/tools/gate/config-templates/genesis-config.yaml b/tools/gate/config-templates/genesis-config.yaml index e42fee13..296adb91 100644 --- a/tools/gate/config-templates/genesis-config.yaml +++ b/tools/gate/config-templates/genesis-config.yaml @@ -38,6 +38,13 @@ data: etcdctl: ${IMAGE_ETCDCTL} scheduler: ${IMAGE_SCHEDULER} enable_operator: false + etcd: + auxiliary_threshold: 3 + heartbeat_interval: 100 + election_timeout: 1000 + snapshot_count: 5000 + cipher_suites: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA + gomaxprocs: 20 files: - path: /var/lib/anchor/calico-etcd-bootstrap content: ""