Francisco Orselli
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
12 additions and
1 deletions
-
docs/etcd.md
-
roles/etcd/templates/etcd.env.j2
-
roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2
|
|
@ -44,3 +44,9 @@ kubeEtcd: |
|
|
|
service: |
|
|
|
enabled: false |
|
|
|
``` |
|
|
|
|
|
|
|
To fully override metrics exposition urls, define it in the inventory with: |
|
|
|
|
|
|
|
```yaml |
|
|
|
etcd_listen_metrics_urls: "http://0.0.0.0:2381" |
|
|
|
``` |
|
|
@ -5,7 +5,9 @@ ETCD_INITIAL_ADVERTISE_PEER_URLS={{ etcd_peer_url }} |
|
|
|
ETCD_INITIAL_CLUSTER_STATE={% if etcd_cluster_is_healthy.rc == 0 | bool %}existing{% else %}new{% endif %} |
|
|
|
|
|
|
|
ETCD_METRICS={{ etcd_metrics }} |
|
|
|
{% if etcd_metrics_port is defined %} |
|
|
|
{% if etcd_listen_metrics_urls is defined %} |
|
|
|
ETCD_LISTEN_METRICS_URLS={{ etcd_listen_metrics_urls }} |
|
|
|
{% elif etcd_metrics_port is defined %} |
|
|
|
ETCD_LISTEN_METRICS_URLS=http://{{ etcd_address }}:{{ etcd_metrics_port }},http://127.0.0.1:{{ etcd_metrics_port }} |
|
|
|
{% endif %} |
|
|
|
ETCD_LISTEN_CLIENT_URLS=https://{{ etcd_address }}:2379,https://127.0.0.1:2379 |
|
|
|
|
|
@ -58,6 +58,9 @@ etcd: |
|
|
|
election-timeout: "{{ etcd_election_timeout }}" |
|
|
|
heartbeat-interval: "{{ etcd_heartbeat_interval }}" |
|
|
|
auto-compaction-retention: "{{ etcd_compaction_retention }}" |
|
|
|
{% if etcd_listen_metrics_urls is defined %} |
|
|
|
listen-metrics-urls: "{{ etcd_listen_metrics_urls }}" |
|
|
|
{% endif %} |
|
|
|
{% if etcd_snapshot_count is defined %} |
|
|
|
snapshot-count: "{{ etcd_snapshot_count }}" |
|
|
|
{% endif %} |
|
|
|