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.

234 lines
8.2 KiB

  1. # Kubernetes configuration dirs and system namespace.
  2. # Those are where all the additional config stuff goes
  3. # the kubernetes normally puts in /srv/kubernets.
  4. # This puts them in a sane location and namespace.
  5. # Editting those values will almost surely break something.
  6. kube_config_dir: /etc/kubernetes
  7. kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
  8. kube_manifest_dir: "{{ kube_config_dir }}/manifests"
  9. system_namespace: kube-system
  10. # This is where all the cert scripts and certs will be located
  11. kube_cert_dir: "{{ kube_config_dir }}/ssl"
  12. # This is where all of the bearer tokens will be stored
  13. kube_token_dir: "{{ kube_config_dir }}/tokens"
  14. # This is where to save basic auth file
  15. kube_users_dir: "{{ kube_config_dir }}/users"
  16. kube_api_anonymous_auth: true
  17. ## Change this to use another Kubernetes version, e.g. a current beta release
  18. kube_version: v1.9.3
  19. # Where the binaries will be downloaded.
  20. # Note: ensure that you've enough disk space (about 1G)
  21. local_release_dir: "/tmp/releases"
  22. # Random shifts for retrying failed ops like pushing/downloading
  23. retry_stagger: 5
  24. # This is the group that the cert creation scripts chgrp the
  25. # cert files to. Not really changable...
  26. kube_cert_group: kube-cert
  27. # Cluster Loglevel configuration
  28. kube_log_level: 2
  29. # Users to create for basic auth in Kubernetes API via HTTP
  30. # Optionally add groups for user
  31. kube_api_pwd: "{{ lookup('password', inventory_dir + '/credentials/kube_user length=15 chars=ascii_letters,digits') }}"
  32. kube_users:
  33. kube:
  34. pass: "{{kube_api_pwd}}"
  35. role: admin
  36. groups:
  37. - system:masters
  38. ## It is possible to activate / deactivate selected authentication methods (basic auth, static token auth)
  39. #kube_oidc_auth: false
  40. #kube_basic_auth: false
  41. #kube_token_auth: false
  42. ## Variables for OpenID Connect Configuration https://kubernetes.io/docs/admin/authentication/
  43. ## To use OpenID you have to deploy additional an OpenID Provider (e.g Dex, Keycloak, ...)
  44. # kube_oidc_url: https:// ...
  45. # kube_oidc_client_id: kubernetes
  46. ## Optional settings for OIDC
  47. # kube_oidc_ca_file: {{ kube_cert_dir }}/ca.pem
  48. # kube_oidc_username_claim: sub
  49. # kube_oidc_groups_claim: groups
  50. # Choose network plugin (cilium, calico, contiv, weave or flannel)
  51. # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
  52. kube_network_plugin: calico
  53. # weave's network password for encryption
  54. # if null then no network encryption
  55. # you can use --extra-vars to pass the password in command line
  56. weave_password: EnterPasswordHere
  57. # Weave uses consensus mode by default
  58. # Enabling seed mode allow to dynamically add or remove hosts
  59. # https://www.weave.works/docs/net/latest/ipam/
  60. weave_mode_seed: false
  61. # This two variable are automatically changed by the weave's role, do not manually change these values
  62. # To reset values :
  63. # weave_seed: uninitialized
  64. # weave_peers: uninitialized
  65. weave_seed: uninitialized
  66. weave_peers: uninitialized
  67. # Set the MTU of Weave (default 1376, Jumbo Frames: 8916)
  68. weave_mtu: 1376
  69. # Enable kubernetes network policies
  70. enable_network_policy: false
  71. # Kubernetes internal network for services, unused block of space.
  72. kube_service_addresses: 10.233.0.0/18
  73. # internal network. When used, it will assign IP
  74. # addresses from this range to individual pods.
  75. # This network must be unused in your network infrastructure!
  76. kube_pods_subnet: 10.233.64.0/18
  77. # internal network node size allocation (optional). This is the size allocated
  78. # to each node on your network. With these defaults you should have
  79. # room for 4096 nodes with 254 pods per node.
  80. kube_network_node_prefix: 24
  81. # The port the API Server will be listening on.
  82. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  83. kube_apiserver_port: 6443 # (https)
  84. kube_apiserver_insecure_port: 8080 # (http)
  85. # Set to 0 to disable insecure port - Requires RBAC in authorization_modes and kube_api_anonymous_auth: true
  86. #kube_apiserver_insecure_port: 0 # (disabled)
  87. # Kube-proxy proxyMode configuration.
  88. # Can be ipvs, iptables
  89. kube_proxy_mode: iptables
  90. ## Encrypting Secret Data at Rest (experimental)
  91. kube_encrypt_secret_data: false
  92. # DNS configuration.
  93. # Kubernetes cluster name, also will be used as DNS domain
  94. cluster_name: cluster.local
  95. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  96. ndots: 2
  97. # Can be dnsmasq_kubedns, kubedns, coredns, coredns_dual, manual or none
  98. dns_mode: kubedns
  99. # Set manual server if using a custom cluster DNS server
  100. #manual_dns_server: 10.x.x.x
  101. # Can be docker_dns, host_resolvconf or none
  102. resolvconf_mode: docker_dns
  103. # Deploy netchecker app to verify DNS resolve as an HTTP service
  104. deploy_netchecker: false
  105. # Ip address of the kubernetes skydns service
  106. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  107. skydns_server_secondary: "{{ kube_service_addresses|ipaddr('net')|ipaddr(4)|ipaddr('address') }}"
  108. dnsmasq_dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  109. dns_domain: "{{ cluster_name }}"
  110. # Path used to store Docker data
  111. docker_daemon_graph: "/var/lib/docker"
  112. ## A string of extra options to pass to the docker daemon.
  113. ## This string should be exactly as you wish it to appear.
  114. ## An obvious use case is allowing insecure-registry access
  115. ## to self hosted registries like so:
  116. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }} {{ docker_log_opts }}"
  117. docker_bin_dir: "/usr/bin"
  118. # Settings for containerized control plane (etcd/kubelet/secrets)
  119. etcd_deployment_type: docker
  120. kubelet_deployment_type: host
  121. vault_deployment_type: docker
  122. helm_deployment_type: host
  123. # K8s image pull policy (imagePullPolicy)
  124. k8s_image_pull_policy: IfNotPresent
  125. # Kubernetes dashboard
  126. # RBAC required. see docs/getting-started.md for access details.
  127. dashboard_enabled: true
  128. # Monitoring apps for k8s
  129. efk_enabled: false
  130. # Helm deployment
  131. helm_enabled: false
  132. # Istio deployment
  133. istio_enabled: false
  134. # Registry deployment
  135. registry_enabled: false
  136. # Local volume provisioner deployment
  137. local_volume_provisioner_enabled: false
  138. # local_volume_provisioner_namespace: "{{ system_namespace }}"
  139. # local_volume_provisioner_base_dir: /mnt/disks
  140. # local_volume_provisioner_mount_dir: /mnt/disks
  141. # local_volume_provisioner_storage_class: local-storage
  142. # CephFS provisioner deployment
  143. cephfs_provisioner_enabled: false
  144. # cephfs_provisioner_namespace: "{{ system_namespace }}"
  145. # cephfs_provisioner_cluster: ceph
  146. # cephfs_provisioner_monitors:
  147. # - 172.24.0.1:6789
  148. # - 172.24.0.2:6789
  149. # - 172.24.0.3:6789
  150. # cephfs_provisioner_admin_id: admin
  151. # cephfs_provisioner_secret: secret
  152. # cephfs_provisioner_storage_class: cephfs
  153. # Nginx ingress controller deployment
  154. ingress_nginx_enabled: false
  155. # ingress_nginx_namespace: "ingress-nginx"
  156. # ingress_nginx_insecure_port: 80
  157. # ingress_nginx_secure_port: 443
  158. # ingress_nginx_configmap:
  159. # map-hash-bucket-size: "128"
  160. # ssl-protocols: "SSLv2"
  161. # ingress_nginx_configmap_tcp_services:
  162. # 9000: "default/example-go:8080"
  163. # ingress_nginx_configmap_udp_services:
  164. # 53: "kube-system/kube-dns:53"
  165. # Add Persistent Volumes Storage Class for corresponding cloud provider ( OpenStack is only supported now )
  166. persistent_volumes_enabled: false
  167. # Make a copy of kubeconfig on the host that runs Ansible in {{ inventory_dir }}/artifacts
  168. # kubeconfig_localhost: false
  169. # Download kubectl onto the host that runs Ansible in {{ bin_dir }}
  170. # kubectl_localhost: false
  171. # dnsmasq
  172. # dnsmasq_upstream_dns_servers:
  173. # - /resolvethiszone.with/10.0.4.250
  174. # - 8.8.8.8
  175. # Enable creation of QoS cgroup hierarchy, if true top level QoS and pod cgroups are created. (default true)
  176. # kubelet_cgroups_per_qos: true
  177. # A comma separated list of levels of node allocatable enforcement to be enforced by kubelet.
  178. # Acceptable options are 'pods', 'system-reserved', 'kube-reserved' and ''. Default is "".
  179. # kubelet_enforce_node_allocatable: pods
  180. ## Supplementary addresses that can be added in kubernetes ssl keys.
  181. ## That can be useful for example to setup a keepalived virtual IP
  182. # supplementary_addresses_in_ssl_keys: [10.0.0.1, 10.0.0.2, 10.0.0.3]
  183. ## Running on top of openstack vms with cinder enabled may lead to unschedulable pods due to NoVolumeZoneConflict restriction in kube-scheduler.
  184. ## See https://github.com/kubernetes-incubator/kubespray/issues/2141
  185. ## Set this variable to true to get rid of this issue
  186. volume_cross_zone_attachment: false