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.

66 lines
1.8 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_events_data_dir: "/var/lib/etcd-events"
  10. etcd_config_dir: /etc/ssl/etcd
  11. etcd_cert_dir: "{{ etcd_config_dir }}/ssl"
  12. etcd_cert_group: root
  13. # Note: This does not set up DNS entries. It simply adds the following DNS
  14. # entries to the certificate
  15. etcd_cert_alt_names:
  16. - "etcd.kube-system.svc.{{ dns_domain }}"
  17. - "etcd.kube-system.svc"
  18. - "etcd.kube-system"
  19. - "etcd"
  20. etcd_cert_alt_ips: []
  21. etcd_script_dir: "{{ bin_dir }}/etcd-scripts"
  22. etcd_heartbeat_interval: "250"
  23. etcd_election_timeout: "5000"
  24. # etcd_snapshot_count: "10000"
  25. # Parameters for ionice
  26. # -c takes an integer between 0 and 3 or one of the strings none, realtime, best-effort or idle.
  27. # -n takes an integer between 0 (highest priority) and 7 (lowest priority)
  28. # etcd_ionice: "-c2 -n0"
  29. etcd_metrics: "basic"
  30. ## A dictionary of extra environment variables to add to etcd.env, formatted like:
  31. ## etcd_extra_vars:
  32. ## ETCD_VAR1: "value1"
  33. ## ETCD_VAR2: "value2"
  34. etcd_extra_vars: {}
  35. # Limits
  36. # Limit memory only if <4GB memory on host. 0=unlimited
  37. etcd_memory_limit: "{% if ansible_memtotal_mb < 4096 %}512M{% else %}0{% endif %}"
  38. # etcd_quota_backend_bytes: "2G"
  39. # Uncomment to set CPU share for etcd
  40. # etcd_cpu_limit: 300m
  41. etcd_blkio_weight: 1000
  42. etcd_node_cert_hosts: "{{ groups['k8s-cluster'] | union(groups.get('calico-rr', [])) | union(groups.get('vault', [])) }}"
  43. etcd_compaction_retention: "8"
  44. etcd_vault_mount_path: "/etcd"
  45. # Force clients like etcdctl to use TLS certs (different than peer security)
  46. etcd_secure_client: true
  47. # Enable peer client cert authentication
  48. etcd_peer_client_auth: true