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.

533 lines
20 KiB

6 years ago
6 years ago
  1. ---
  2. # Use proxycommand if bastion host is in group all
  3. # This change obseletes editing ansible.cfg file depending on bastion existence
  4. ansible_ssh_common_args: "{% if 'bastion' in groups['all'] %} -o ProxyCommand='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -W %h:%p {{ hostvars['bastion']['ansible_user'] }}@{{ hostvars['bastion']['ansible_host'] }} {% if ansible_ssh_private_key_file is defined %}-i {{ ansible_ssh_private_key_file }}{% endif %} ' {% endif %}"
  5. # selinux state
  6. preinstall_selinux_state: permissive
  7. kube_api_anonymous_auth: true
  8. # Default value, but will be set to true automatically if detected
  9. is_fedora_coreos: false
  10. # optional disable the swap
  11. disable_swap: true
  12. ## Change this to use another Kubernetes version, e.g. a current beta release
  13. kube_version: v1.19.2
  14. ## The minimum version working
  15. kube_version_min_required: v1.17.0
  16. # use HyperKube image to control plane containers
  17. kubeadm_use_hyperkube_image: False
  18. ## Kube Proxy mode One of ['iptables','ipvs']
  19. kube_proxy_mode: ipvs
  20. ## List of kubeadm init phases that should be skipped during control plane setup
  21. ## By default 'addon/coredns' is skipped
  22. ## 'addon/kube-proxy' gets skipped for some network plugins
  23. kubeadm_init_phases_skip_default: [ "addon/coredns" ]
  24. kubeadm_init_phases_skip: >-
  25. {%- if kube_network_plugin == 'kube-router' and (kube_router_run_service_proxy is defined and kube_router_run_service_proxy) -%}
  26. {{ kubeadm_init_phases_skip_default }} + [ "addon/kube-proxy" ]
  27. {%- elif kube_network_plugin == 'cilium' and (cilium_kube_proxy_replacement is defined and cilium_kube_proxy_replacement == 'strict') -%}
  28. {{ kubeadm_init_phases_skip_default }} + [ "addon/kube-proxy" ]
  29. {%- elif kube_proxy_remove is defined and kube_proxy_remove -%}
  30. {{ kubeadm_init_phases_skip_default }} + [ "addon/kube-proxy" ]
  31. {%- else -%}
  32. {{ kubeadm_init_phases_skip_default }}
  33. {%- endif -%}
  34. # A string slice of values which specify the addresses to use for NodePorts.
  35. # Values may be valid IP blocks (e.g. 1.2.3.0/24, 1.2.3.4/32).
  36. # The default empty string slice ([]) means to use all local addresses.
  37. # kube_proxy_nodeport_addresses_cidr is retained for legacy config
  38. kube_proxy_nodeport_addresses: >-
  39. {%- if kube_proxy_nodeport_addresses_cidr is defined -%}
  40. [{{ kube_proxy_nodeport_addresses_cidr }}]
  41. {%- else -%}
  42. []
  43. {%- endif -%}
  44. # Set to true to allow pre-checks to fail and continue deployment
  45. ignore_assert_errors: false
  46. # nginx-proxy configure
  47. nginx_config_dir: "/etc/nginx"
  48. # haproxy configure
  49. haproxy_config_dir: "/etc/haproxy"
  50. # Directory where the binaries will be installed
  51. bin_dir: /usr/local/bin
  52. docker_bin_dir: /usr/bin
  53. containerd_bin_dir: /usr/bin
  54. etcd_data_dir: /var/lib/etcd
  55. # Where the binaries will be downloaded.
  56. # Note: ensure that you've enough disk space (about 1G)
  57. local_release_dir: "/tmp/releases"
  58. # Random shifts for retrying failed ops like pushing/downloading
  59. retry_stagger: 5
  60. # Install epel repo on Centos/RHEL
  61. epel_enabled: false
  62. # DNS configuration.
  63. # Kubernetes cluster name, also will be used as DNS domain
  64. cluster_name: cluster.local
  65. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  66. ndots: 2
  67. # Default resolv.conf options
  68. docker_dns_options:
  69. - ndots:{{ ndots }}
  70. - timeout:2
  71. - attempts:2
  72. # Can be coredns, coredns_dual, manual, or none
  73. dns_mode: coredns
  74. # Enable nodelocal dns cache
  75. enable_nodelocaldns: true
  76. nodelocaldns_ip: 169.254.25.10
  77. nodelocaldns_health_port: 9254
  78. # Should be set to a cluster IP if using a custom cluster DNS
  79. manual_dns_server: ""
  80. # Can be docker_dns, host_resolvconf or none
  81. resolvconf_mode: docker_dns
  82. # Deploy netchecker app to verify DNS resolve as an HTTP service
  83. deploy_netchecker: false
  84. # Ip address of the kubernetes DNS service (called skydns for historical reasons)
  85. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  86. skydns_server_secondary: "{{ kube_service_addresses|ipaddr('net')|ipaddr(4)|ipaddr('address') }}"
  87. dns_domain: "{{ cluster_name }}"
  88. docker_dns_search_domains:
  89. - 'default.svc.{{ dns_domain }}'
  90. - 'svc.{{ dns_domain }}'
  91. kube_dns_servers:
  92. coredns: ["{{skydns_server}}"]
  93. coredns_dual: "{{[skydns_server] + [ skydns_server_secondary ]}}"
  94. manual: ["{{manual_dns_server}}"]
  95. dns_servers: "{{kube_dns_servers[dns_mode]}}"
  96. enable_coredns_k8s_external: false
  97. coredns_k8s_external_zone: k8s_external.local
  98. enable_coredns_k8s_endpoint_pod_names: false
  99. # Kubernetes configuration dirs and system namespace.
  100. # Those are where all the additional config stuff goes
  101. # the kubernetes normally puts in /srv/kubernetes.
  102. # This puts them in a sane location and namespace.
  103. # Editing those values will almost surely break something.
  104. kube_config_dir: /etc/kubernetes
  105. kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
  106. kube_manifest_dir: "{{ kube_config_dir }}/manifests"
  107. # This is where all the cert scripts and certs will be located
  108. kube_cert_dir: "{{ kube_config_dir }}/ssl"
  109. # compatibility directory for kubeadm
  110. kube_cert_compat_dir: "/etc/kubernetes/pki"
  111. # This is where all of the bearer tokens will be stored
  112. kube_token_dir: "{{ kube_config_dir }}/tokens"
  113. # This is the group that the cert creation scripts chgrp the
  114. # cert files to. Not really changeable...
  115. kube_cert_group: kube-cert
  116. # Cluster Loglevel configuration
  117. kube_log_level: 2
  118. # Choose network plugin (cilium, calico, weave or flannel)
  119. # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
  120. kube_network_plugin: calico
  121. kube_network_plugin_multus: false
  122. # Determines if calico-rr group exists
  123. peer_with_calico_rr: "{{ 'calico-rr' in groups and groups['calico-rr']|length > 0 }}"
  124. # Set to false to disable calico-upgrade
  125. calico_upgrade_enabled: true
  126. # Choose data store type for calico: "etcd" or "kdd" (kubernetes datastore)
  127. calico_datastore: "kdd"
  128. # Kubernetes internal network for services, unused block of space.
  129. kube_service_addresses: 10.233.0.0/18
  130. # internal network. When used, it will assign IP
  131. # addresses from this range to individual pods.
  132. # This network must be unused in your network infrastructure!
  133. kube_pods_subnet: 10.233.64.0/18
  134. # internal network node size allocation (optional). This is the size allocated
  135. # to each node for pod IP address allocation. Note that the number of pods per node is
  136. # also limited by the kubelet_max_pods variable which defaults to 110.
  137. #
  138. # Example:
  139. # Up to 64 nodes and up to 254 or kubelet_max_pods (the lowest of the two) pods per node:
  140. # - kube_pods_subnet: 10.233.64.0/18
  141. # - kube_network_node_prefix: 24
  142. # - kubelet_max_pods: 110
  143. #
  144. # Example:
  145. # Up to 128 nodes and up to 126 or kubelet_max_pods (the lowest of the two) pods per node:
  146. # - kube_pods_subnet: 10.233.64.0/18
  147. # - kube_network_node_prefix: 25
  148. # - kubelet_max_pods: 110
  149. kube_network_node_prefix: 24
  150. # The virtual cluster IP, real host IPs and ports the API Server will be
  151. # listening on.
  152. # NOTE: loadbalancer_apiserver_localhost somewhat alters the final API enpdoint
  153. # access IP value (automatically evaluated below)
  154. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  155. kube_apiserver_bind_address: 0.0.0.0
  156. # https
  157. kube_apiserver_port: 6443
  158. # http
  159. kube_apiserver_insecure_bind_address: 127.0.0.1
  160. kube_apiserver_insecure_port: 0
  161. # If non-empty, will use this string as identification instead of the actual hostname
  162. kube_override_hostname: >-
  163. {%- if cloud_provider is defined and cloud_provider in [ 'aws' ] -%}
  164. {%- else -%}
  165. {{ inventory_hostname }}
  166. {%- endif -%}
  167. # dynamic kubelet configuration
  168. dynamic_kubelet_configuration: false
  169. # define kubelet config dir for dynamic kubelet
  170. # kubelet_config_dir:
  171. default_kubelet_config_dir: "{{ kube_config_dir }}/dynamic_kubelet_dir"
  172. dynamic_kubelet_configuration_dir: "{{ kubelet_config_dir | default(default_kubelet_config_dir) }}"
  173. # Aggregator
  174. kube_api_aggregator_routing: false
  175. # Profiling
  176. kube_profiling: false
  177. # Container for runtime
  178. container_manager: docker
  179. # Enable Kata Containers as additional container runtime
  180. # When enabled, it requires container_manager=containerd
  181. kata_containers_enabled: false
  182. # Container on localhost (download images when download_localhost is true)
  183. container_manager_on_localhost: "{{ container_manager }}"
  184. # CRI socket path
  185. cri_socket: >-
  186. {%- if container_manager == 'crio' -%}
  187. /var/run/crio/crio.sock
  188. {%- elif container_manager == 'containerd' -%}
  189. /var/run/containerd/containerd.sock
  190. {%- else -%}
  191. /var/run/dockershim.sock
  192. {%- endif -%}
  193. ## Uncomment this if you want to force overlay/overlay2 as docker storage driver
  194. ## Please note that overlay2 is only supported on newer kernels
  195. # docker_storage_options: -s overlay2
  196. ## Enable docker_container_storage_setup, it will configure devicemapper driver on Centos7 or RedHat7.
  197. docker_container_storage_setup: false
  198. ## It must be define a disk path for docker_container_storage_setup_devs.
  199. ## Otherwise docker-storage-setup will be executed incorrectly.
  200. # docker_container_storage_setup_devs: /dev/vdb
  201. ## Uncomment this if you have more than 3 nameservers, then we'll only use the first 3.
  202. docker_dns_servers_strict: false
  203. # Path used to store Docker data
  204. docker_daemon_graph: "/var/lib/docker"
  205. ## Used to set docker daemon iptables options to true
  206. docker_iptables_enabled: "false"
  207. # Docker log options
  208. # Rotate container stderr/stdout logs at 50m and keep last 5
  209. docker_log_opts: "--log-opt max-size=50m --log-opt max-file=5"
  210. ## A list of insecure docker registries (IP address or domain name), for example
  211. ## to allow insecure-registry access to self-hosted registries. Empty by default.
  212. # docker_insecure_registries:
  213. # - mirror.registry.io
  214. # - 172.19.16.11
  215. docker_insecure_registries: []
  216. ## A list of additional registry mirrors, for example China registry mirror. Empty by default.
  217. # docker_registry_mirrors:
  218. # - https://registry.docker-cn.com
  219. # - https://mirror.aliyuncs.com
  220. docker_registry_mirrors: []
  221. ## If non-empty will override default system MounFlags value.
  222. ## This option takes a mount propagation flag: shared, slave
  223. ## or private, which control whether mounts in the file system
  224. ## namespace set up for docker will receive or propagate mounts
  225. ## and unmounts. Leave empty for system default
  226. # docker_mount_flags:
  227. ## A string of extra options to pass to the docker daemon.
  228. # docker_options: ""
  229. ## A list of plugins to install using 'docker plugin install --grant-all-permissions'
  230. ## Empty by default so no plugins will be installed.
  231. docker_plugins: []
  232. # Experimental kubeadm etcd deployment mode. Available only for new deployment
  233. etcd_kubeadm_enabled: false
  234. # Containerd options
  235. containerd_use_systemd_cgroup: false
  236. # Settings for containerized control plane (etcd/kubelet/secrets)
  237. # deployment type for legacy etcd mode
  238. etcd_deployment_type: docker
  239. cert_management: script
  240. helm_deployment_type: host
  241. # Make a copy of kubeconfig on the host that runs Ansible in {{ inventory_dir }}/artifacts
  242. kubeconfig_localhost: false
  243. # Download kubectl onto the host that runs Ansible in {{ bin_dir }}
  244. kubectl_localhost: false
  245. # Define credentials_dir here so it can be overridden
  246. credentials_dir: "{{ inventory_dir }}/credentials"
  247. # K8s image pull policy (imagePullPolicy)
  248. k8s_image_pull_policy: IfNotPresent
  249. # Kubernetes dashboard
  250. # RBAC required. see docs/getting-started.md for access details.
  251. dashboard_enabled: true
  252. # Addons which can be enabled
  253. helm_enabled: false
  254. registry_enabled: false
  255. metrics_server_enabled: false
  256. enable_network_policy: true
  257. local_path_provisioner_enabled: false
  258. local_volume_provisioner_enabled: false
  259. local_volume_provisioner_directory_mode: 0700
  260. cinder_csi_enabled: false
  261. aws_ebs_csi_enabled: false
  262. azure_csi_enabled: false
  263. gcp_pd_csi_enabled: false
  264. vsphere_csi_enabled: false
  265. persistent_volumes_enabled: false
  266. cephfs_provisioner_enabled: false
  267. rbd_provisioner_enabled: false
  268. ingress_nginx_enabled: false
  269. ingress_ambassador_enabled: false
  270. ingress_alb_enabled: false
  271. cert_manager_enabled: false
  272. expand_persistent_volumes: false
  273. metallb_enabled: false
  274. ## When OpenStack is used, Cinder version can be explicitly specified if autodetection fails (Fixed in 1.9: https://github.com/kubernetes/kubernetes/issues/50461)
  275. # openstack_blockstorage_version: "v1/v2/auto (default)"
  276. openstack_blockstorage_ignore_volume_az: "{{ volume_cross_zone_attachment | default('false') }}"
  277. # set max volumes per node (cinder-csi), default not set
  278. # node_volume_attach_limit: 25
  279. # Cinder CSI topology, when false volumes can be cross-mounted between availability zones
  280. # cinder_topology: false
  281. # Set Cinder topology zones (can be multiple zones, default not set)
  282. # cinder_topology_zones:
  283. # - nova
  284. ## When OpenStack is used, if LBaaSv2 is available you can enable it with the following 2 variables.
  285. openstack_lbaas_enabled: false
  286. # openstack_lbaas_subnet_id: "Neutron subnet ID (not network ID) to create LBaaS VIP"
  287. ## To enable automatic floating ip provisioning, specify a subnet.
  288. # openstack_lbaas_floating_network_id: "Neutron network ID (not subnet ID) to get floating IP from, disabled by default"
  289. ## Override default LBaaS behavior
  290. # openstack_lbaas_use_octavia: False
  291. # openstack_lbaas_method: "ROUND_ROBIN"
  292. # openstack_lbaas_provider: "haproxy"
  293. openstack_lbaas_create_monitor: "yes"
  294. openstack_lbaas_monitor_delay: "1m"
  295. openstack_lbaas_monitor_timeout: "30s"
  296. openstack_lbaas_monitor_max_retries: "3"
  297. openstack_cacert: "{{ lookup('env','OS_CACERT') }}"
  298. # Default values for the external OpenStack Cloud Controller
  299. external_openstack_lbaas_use_octavia: true
  300. external_openstack_lbaas_create_monitor: false
  301. external_openstack_lbaas_monitor_delay: "1m"
  302. external_openstack_lbaas_monitor_timeout: "30s"
  303. external_openstack_lbaas_monitor_max_retries: "3"
  304. external_openstack_network_ipv6_disabled: false
  305. external_openstack_network_internal_networks:
  306. - ""
  307. external_openstack_network_public_networks:
  308. - ""
  309. ## List of authorization modes that must be configured for
  310. ## the k8s cluster. Only 'AlwaysAllow', 'AlwaysDeny', 'Node' and
  311. ## 'RBAC' modes are tested. Order is important.
  312. authorization_modes: ['Node', 'RBAC']
  313. rbac_enabled: "{{ 'RBAC' in authorization_modes }}"
  314. # When enabled, API bearer tokens (including service account tokens) can be used to authenticate to the kubelet’s HTTPS endpoint
  315. kubelet_authentication_token_webhook: true
  316. # When enabled, access to the kubelet API requires authorization by delegation to the API server
  317. kubelet_authorization_mode_webhook: true
  318. # kubelet uses certificates for authenticating to the Kubernetes API
  319. # Automatically generate a new key and request a new certificate from the Kubernetes API as the current certificate approaches expiration
  320. kubelet_rotate_certificates: true
  321. # kubelet can also request a new server certificate from the Kubernetes API
  322. kubelet_rotate_server_certificates: false
  323. # If set to true, kubelet errors if any of kernel tunables is different than kubelet defaults
  324. kubelet_protect_kernel_defaults: true
  325. ## List of key=value pairs that describe feature gates for
  326. ## the k8s cluster.
  327. kube_feature_gates: []
  328. # Local volume provisioner storage classes
  329. # Levarages Ansibles string to Python datatype casting. Otherwise the dict_key isn't substituted
  330. # see https://github.com/ansible/ansible/issues/17324
  331. local_volume_provisioner_storage_classes: |
  332. {
  333. "{{ local_volume_provisioner_storage_class | default('local-storage') }}": {
  334. "host_dir": "{{ local_volume_provisioner_base_dir | default ('/mnt/disks') }}",
  335. "mount_dir": "{{ local_volume_provisioner_mount_dir | default('/mnt/disks') }}",
  336. "volume_mode": "Filesystem",
  337. "fs_type": "ext4"
  338. }
  339. }
  340. # weave's network password for encryption
  341. # if null then no network encryption
  342. # you can use --extra-vars to pass the password in command line
  343. weave_password: EnterPasswordHere
  344. # Contiv L3 BGP Mode
  345. contiv_peer_with_uplink_leaf: false
  346. contiv_global_as: "65002"
  347. contiv_global_neighbor_as: "500"
  348. ssl_ca_dirs: |-
  349. [
  350. {% if ansible_os_family in ['Flatcar Container Linux by Kinvolk'] -%}
  351. '/usr/share/ca-certificates',
  352. {% elif ansible_os_family == 'RedHat' -%}
  353. '/etc/pki/tls',
  354. '/etc/pki/ca-trust',
  355. {% elif ansible_os_family == 'Debian' -%}
  356. '/usr/share/ca-certificates',
  357. {% endif -%}
  358. ]
  359. # Vars for pointing to kubernetes api endpoints
  360. is_kube_master: "{{ inventory_hostname in groups['kube-master'] }}"
  361. kube_apiserver_count: "{{ groups['kube-master'] | length }}"
  362. kube_apiserver_address: "{{ ip | default(fallback_ips[inventory_hostname]) }}"
  363. kube_apiserver_access_address: "{{ access_ip | default(kube_apiserver_address) }}"
  364. first_kube_master: "{{ hostvars[groups['kube-master'][0]]['access_ip'] | default(hostvars[groups['kube-master'][0]]['ip'] | default(fallback_ips[groups['kube-master'][0]])) }}"
  365. loadbalancer_apiserver_localhost: "{{ loadbalancer_apiserver is not defined }}"
  366. loadbalancer_apiserver_type: "nginx"
  367. # applied if only external loadbalancer_apiserver is defined, otherwise ignored
  368. apiserver_loadbalancer_domain_name: "lb-apiserver.kubernetes.local"
  369. kube_apiserver_global_endpoint: |-
  370. {% if loadbalancer_apiserver is defined -%}
  371. https://{{ apiserver_loadbalancer_domain_name }}:{{ loadbalancer_apiserver.port|default(kube_apiserver_port) }}
  372. {%- else -%}
  373. https://{{ first_kube_master }}:{{ kube_apiserver_port }}
  374. {%- endif %}
  375. kube_apiserver_endpoint: |-
  376. {% if loadbalancer_apiserver is defined -%}
  377. https://{{ apiserver_loadbalancer_domain_name }}:{{ loadbalancer_apiserver.port|default(kube_apiserver_port) }}
  378. {%- elif not is_kube_master and loadbalancer_apiserver_localhost -%}
  379. https://localhost:{{ loadbalancer_apiserver_port|default(kube_apiserver_port) }}
  380. {%- elif is_kube_master -%}
  381. https://{{ kube_apiserver_bind_address | regex_replace('0\.0\.0\.0','127.0.0.1') }}:{{ kube_apiserver_port }}
  382. {%- else -%}
  383. https://{{ first_kube_master }}:{{ kube_apiserver_port }}
  384. {%- endif %}
  385. kube_apiserver_insecure_endpoint: >-
  386. http://{{ kube_apiserver_insecure_bind_address | regex_replace('0\.0\.0\.0','127.0.0.1') }}:{{ kube_apiserver_insecure_port }}
  387. kube_apiserver_client_cert: "{{ kube_cert_dir }}/ca.crt"
  388. kube_apiserver_client_key: "{{ kube_cert_dir }}/ca.key"
  389. # Set to true to deploy etcd-events cluster
  390. etcd_events_cluster_enabled: false
  391. # Vars for pointing to etcd endpoints
  392. is_etcd_master: "{{ inventory_hostname in groups['etcd'] }}"
  393. etcd_address: "{{ ip | default(fallback_ips[inventory_hostname]) }}"
  394. etcd_access_address: "{{ access_ip | default(etcd_address) }}"
  395. etcd_events_access_address: "{{ access_ip | default(etcd_address) }}"
  396. etcd_peer_url: "https://{{ etcd_access_address }}:2380"
  397. etcd_client_url: "https://{{ etcd_access_address }}:2379"
  398. etcd_events_peer_url: "https://{{ etcd_events_access_address }}:2382"
  399. etcd_events_client_url: "https://{{ etcd_events_access_address }}:2381"
  400. etcd_access_addresses: |-
  401. {% for item in groups['etcd'] -%}
  402. https://{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(fallback_ips[item])) }}:2379{% if not loop.last %},{% endif %}
  403. {%- endfor %}
  404. etcd_events_access_addresses_list: |-
  405. [
  406. {% for item in groups['etcd'] -%}
  407. 'https://{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(fallback_ips[item])) }}:2381'{% if not loop.last %},{% endif %}
  408. {%- endfor %}
  409. ]
  410. etcd_events_access_addresses: "{{etcd_events_access_addresses_list | join(',')}}"
  411. etcd_events_access_addresses_semicolon: "{{etcd_events_access_addresses_list | join(';')}}"
  412. # user should set etcd_member_name in inventory/mycluster/hosts.ini
  413. etcd_member_name: |-
  414. {% for host in groups['etcd'] %}
  415. {% if inventory_hostname == host %}{{ hostvars[host].etcd_member_name | default("etcd" + loop.index|string) }}{% endif %}
  416. {% endfor %}
  417. etcd_peer_addresses: |-
  418. {% for item in groups['etcd'] -%}
  419. {{ hostvars[item].etcd_member_name | default("etcd" + loop.index|string) }}=https://{{ hostvars[item].access_ip | default(hostvars[item].ip | default(fallback_ips[item])) }}:2380{% if not loop.last %},{% endif %}
  420. {%- endfor %}
  421. etcd_events_peer_addresses: |-
  422. {% for item in groups['etcd'] -%}
  423. {{ hostvars[item].etcd_member_name | default("etcd" + loop.index|string) }}-events=https://{{ hostvars[item].access_ip | default(hostvars[item].ip | default(fallback_ips[item])) }}:2382{% if not loop.last %},{% endif %}
  424. {%- endfor %}
  425. podsecuritypolicy_enabled: false
  426. etcd_heartbeat_interval: "250"
  427. etcd_election_timeout: "5000"
  428. etcd_snapshot_count: "10000"
  429. certificates_key_size: 2048
  430. certificates_duration: 36500
  431. etcd_config_dir: /etc/ssl/etcd
  432. etcd_events_data_dir: "/var/lib/etcd-events"
  433. etcd_cert_dir: "{{ etcd_config_dir }}/ssl"
  434. typha_enabled: false
  435. _host_architecture_groups:
  436. x86_64: amd64
  437. aarch64: arm64
  438. armv7l: arm
  439. host_architecture: >-
  440. {%- if ansible_architecture in _host_architecture_groups -%}
  441. {{ _host_architecture_groups[ansible_architecture] }}
  442. {%- else -%}
  443. {{ ansible_architecture }}
  444. {%- endif -%}