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.

130 lines
4.2 KiB

  1. ---
  2. # Set etcd user
  3. etcd_owner: etcd
  4. # Set to false to only do certificate management
  5. etcd_cluster_setup: true
  6. etcd_events_cluster_setup: false
  7. # Set to true to separate k8s events to a different etcd cluster
  8. etcd_events_cluster_enabled: false
  9. etcd_backup_prefix: "/var/backups"
  10. etcd_data_dir: "/var/lib/etcd"
  11. # Number of etcd backups to retain. Set to a value < 0 to retain all backups
  12. etcd_backup_retention_count: -1
  13. force_etcd_cert_refresh: true
  14. etcd_config_dir: /etc/ssl/etcd
  15. etcd_cert_dir: "{{ etcd_config_dir }}/ssl"
  16. etcd_cert_dir_mode: "0700"
  17. etcd_cert_group: root
  18. # Note: This does not set up DNS entries. It simply adds the following DNS
  19. # entries to the certificate
  20. etcd_cert_alt_names:
  21. - "etcd.kube-system.svc.{{ dns_domain }}"
  22. - "etcd.kube-system.svc"
  23. - "etcd.kube-system"
  24. - "etcd"
  25. etcd_cert_alt_ips: []
  26. etcd_script_dir: "{{ bin_dir }}/etcd-scripts"
  27. etcd_heartbeat_interval: "250"
  28. etcd_election_timeout: "5000"
  29. # etcd_snapshot_count: "10000"
  30. etcd_metrics: "basic"
  31. # Define in inventory to set a separate port for etcd to expose metrics on
  32. # etcd_metrics_port: 2381
  33. ## A dictionary of extra environment variables to add to etcd.env, formatted like:
  34. ## etcd_extra_vars:
  35. ## ETCD_VAR1: "value1"
  36. ## ETCD_VAR2: "value2"
  37. etcd_extra_vars: {}
  38. # Limits
  39. # Limit memory only if <4GB memory on host. 0=unlimited
  40. # This value is only relevant when deploying etcd with `etcd_deployment_type: docker`
  41. etcd_memory_limit: "{% if ansible_memtotal_mb < 4096 %}512M{% else %}0{% endif %}"
  42. # The default storage size limit is 2G.
  43. # 8G is a suggested maximum size for normal environments and etcd warns at startup if the configured value exceeds it.
  44. # etcd_quota_backend_bytes: "2147483648"
  45. # Maximum client request size in bytes the server will accept.
  46. # etcd is designed to handle small key value pairs typical for metadata.
  47. # Larger requests will work, but may increase the latency of other requests
  48. # etcd_max_request_bytes: "1572864"
  49. # Uncomment to set CPU share for etcd
  50. # etcd_cpu_limit: 300m
  51. etcd_blkio_weight: 1000
  52. etcd_node_cert_hosts: "{{ groups['k8s_cluster'] }}"
  53. etcd_compaction_retention: "8"
  54. # Force clients like etcdctl to use TLS certs (different than peer security)
  55. etcd_secure_client: true
  56. # Enable peer client cert authentication
  57. etcd_peer_client_auth: true
  58. # Maximum number of snapshot files to retain (0 is unlimited)
  59. # etcd_max_snapshots: 5
  60. # Maximum number of wal files to retain (0 is unlimited)
  61. # etcd_max_wals: 5
  62. # Number of loop retries
  63. etcd_retries: 4
  64. ## Support tls cipher suites.
  65. # etcd_tls_cipher_suites: {}
  66. # - TLS_RSA_WITH_RC4_128_SHA
  67. # - TLS_RSA_WITH_3DES_EDE_CBC_SHA
  68. # - TLS_RSA_WITH_AES_128_CBC_SHA
  69. # - TLS_RSA_WITH_AES_256_CBC_SHA
  70. # - TLS_RSA_WITH_AES_128_CBC_SHA256
  71. # - TLS_RSA_WITH_AES_128_GCM_SHA256
  72. # - TLS_RSA_WITH_AES_256_GCM_SHA384
  73. # - TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
  74. # - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
  75. # - TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
  76. # - TLS_ECDHE_RSA_WITH_RC4_128_SHA
  77. # - TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
  78. # - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
  79. # - TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
  80. # - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
  81. # - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
  82. # - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  83. # - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
  84. # - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
  85. # - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
  86. # - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
  87. # - TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
  88. # ETCD 3.5.x issue
  89. # https://groups.google.com/a/kubernetes.io/g/dev/c/B7gJs88XtQc/m/rSgNOzV2BwAJ?utm_medium=email&utm_source=footer
  90. etcd_experimental_initial_corrupt_check: true
  91. # If this is true, debug information will be displayed but
  92. # may contain some private data, so it is recommended to set it to false
  93. # in the production environment.
  94. unsafe_show_logs: false
  95. # Enable distributed tracing
  96. # https://etcd.io/docs/v3.5/op-guide/monitoring/#distributed-tracing
  97. etcd_experimental_enable_distributed_tracing: false
  98. etcd_experimental_distributed_tracing_sample_rate: 100
  99. etcd_experimental_distributed_tracing_address: "localhost:4317"
  100. etcd_experimental_distributed_tracing_service_name: etcd
  101. # The interval for etcd watch progress notify events
  102. etcd_experimental_watch_progress_notify_interval: 5s