You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.7 KiB

  1. ---
  2. # Set to false to only do certificate management
  3. etcd_cluster_setup: true
  4. etcd_events_cluster_setup: false
  5. # Set to true to separate k8s events to a different etcd cluster
  6. etcd_events_cluster_enabled: false
  7. etcd_backup_prefix: "/var/backups"
  8. etcd_data_dir: "/var/lib/etcd"
  9. etcd_config_dir: /etc/ssl/etcd
  10. etcd_cert_dir: "{{ etcd_config_dir }}/ssl"
  11. etcd_cert_group: root
  12. # Note: This does not set up DNS entries. It simply adds the following DNS
  13. # entries to the certificate
  14. etcd_cert_alt_names:
  15. - "etcd.kube-system.svc.{{ dns_domain }}"
  16. - "etcd.kube-system.svc"
  17. - "etcd.kube-system"
  18. - "etcd"
  19. etcd_cert_alt_ips: []
  20. etcd_script_dir: "{{ bin_dir }}/etcd-scripts"
  21. etcd_heartbeat_interval: "250"
  22. etcd_election_timeout: "5000"
  23. # etcd_snapshot_count: "10000"
  24. etcd_metrics: "basic"
  25. # Uncomment to set a separate port for etcd to expose metrics on
  26. # etcd_metrics_port: 2381
  27. ## A dictionary of extra environment variables to add to etcd.env, formatted like:
  28. ## etcd_extra_vars:
  29. ## ETCD_VAR1: "value1"
  30. ## ETCD_VAR2: "value2"
  31. etcd_extra_vars: {}
  32. # Limits
  33. # Limit memory only if <4GB memory on host. 0=unlimited
  34. etcd_memory_limit: "{% if ansible_memtotal_mb < 4096 %}512M{% else %}0{% endif %}"
  35. # etcd_quota_backend_bytes: "2147483648"
  36. # Uncomment to set CPU share for etcd
  37. # etcd_cpu_limit: 300m
  38. etcd_blkio_weight: 1000
  39. etcd_node_cert_hosts: "{{ groups['k8s-cluster'] | union(groups.get('calico-rr', [])) | union(groups.get('vault', [])) }}"
  40. etcd_compaction_retention: "8"
  41. # Force clients like etcdctl to use TLS certs (different than peer security)
  42. etcd_secure_client: true
  43. # Enable peer client cert authentication
  44. etcd_peer_client_auth: true
  45. # Number of loop retries
  46. etcd_retries: 4