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.

46 lines
1.2 KiB

  1. ---
  2. # Set to false to only do certificate management
  3. etcd_cluster_setup: true
  4. etcd_backup_prefix: "/var/backups"
  5. etcd_data_dir: "/var/lib/etcd"
  6. etcd_events_data_dir: "/var/lib/etcd-events"
  7. etcd_config_dir: /etc/ssl/etcd
  8. etcd_cert_dir: "{{ etcd_config_dir }}/ssl"
  9. etcd_cert_group: root
  10. # Note: This does not set up DNS entries. It simply adds the following DNS
  11. # entries to the certificate
  12. etcd_cert_alt_names:
  13. - "etcd.{{ system_namespace }}.svc.{{ dns_domain }}"
  14. - "etcd.{{ system_namespace }}.svc"
  15. - "etcd.{{ system_namespace }}"
  16. - "etcd"
  17. etcd_script_dir: "{{ bin_dir }}/etcd-scripts"
  18. etcd_heartbeat_interval: "250"
  19. etcd_election_timeout: "5000"
  20. etcd_metrics: "basic"
  21. # Limits
  22. # Limit memory only if <4GB memory on host. 0=unlimited
  23. etcd_memory_limit: "{% if ansible_memtotal_mb < 4096 %}512M{% else %}0{% endif %}"
  24. # Uncomment to set CPU share for etcd
  25. # etcd_cpu_limit: 300m
  26. etcd_blkio_weight: 1000
  27. etcd_node_cert_hosts: "{{ groups['k8s-cluster'] | union(groups.get('calico-rr', [])) | union(groups.get('vault', [])) }}"
  28. etcd_compaction_retention: "8"
  29. etcd_vault_mount_path: etcd
  30. # Force clients like etcdctl to use TLS certs (different than peer security)
  31. etcd_secure_client: true
  32. # Enable peer client cert authentication
  33. etcd_peer_client_auth: true