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.

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