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.

215 lines
8.0 KiB

  1. # Valid bootstrap options (required): ubuntu, coreos, centos, none
  2. bootstrap_os: none
  3. # Directory where the binaries will be installed
  4. bin_dir: /usr/local/bin
  5. # Kubernetes configuration dirs and system namespace.
  6. # Those are where all the additional config stuff goes
  7. # the kubernetes normally puts in /srv/kubernets.
  8. # This puts them in a sane location and namespace.
  9. # Editting those values will almost surely break something.
  10. kube_config_dir: /etc/kubernetes
  11. kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
  12. kube_manifest_dir: "{{ kube_config_dir }}/manifests"
  13. system_namespace: kube-system
  14. # This is where all the cert scripts and certs will be located
  15. kube_cert_dir: "{{ kube_config_dir }}/ssl"
  16. # This is where all of the bearer tokens will be stored
  17. kube_token_dir: "{{ kube_config_dir }}/tokens"
  18. # This is where to save basic auth file
  19. kube_users_dir: "{{ kube_config_dir }}/users"
  20. ## Change this to use another Kubernetes version, e.g. a current beta release
  21. kube_version: v1.5.1
  22. # Where the binaries will be downloaded.
  23. # Note: ensure that you've enough disk space (about 1G)
  24. local_release_dir: "/tmp/releases"
  25. # Random shifts for retrying failed ops like pushing/downloading
  26. retry_stagger: 5
  27. # Uncomment this line for CoreOS only.
  28. # Directory where python binary is installed
  29. # ansible_python_interpreter: "/opt/bin/python"
  30. # This is the group that the cert creation scripts chgrp the
  31. # cert files to. Not really changable...
  32. kube_cert_group: kube-cert
  33. # Cluster Loglevel configuration
  34. kube_log_level: 2
  35. # Kubernetes 1.5 added a new flag to the apiserver to disable anonymous auth. In previos versions, anonymous auth was
  36. # not implemented. As the new flag defaults to true, we have to explicitly disable it. Change this line if you want the
  37. # 1.5 default behavior. The flag is actually only added if the used kubernetes version is >= 1.5
  38. kube_api_anonymous_auth: false
  39. # Users to create for basic auth in Kubernetes API via HTTP
  40. kube_api_pwd: "changeme"
  41. kube_users:
  42. kube:
  43. pass: "{{kube_api_pwd}}"
  44. role: admin
  45. root:
  46. pass: "{{kube_api_pwd}}"
  47. role: admin
  48. # Kubernetes cluster name, also will be used as DNS domain
  49. cluster_name: cluster.local
  50. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  51. ndots: 2
  52. # Deploy netchecker app to verify DNS resolve as an HTTP service
  53. deploy_netchecker: false
  54. # For some environments, each node has a publicly accessible
  55. # address and an address it should bind services to. These are
  56. # really inventory level variables, but described here for consistency.
  57. #
  58. # When advertising access, the access_ip will be used, but will defer to
  59. # ip and then the default ansible ip when unspecified.
  60. #
  61. # When binding to restrict access, the ip variable will be used, but will
  62. # defer to the default ansible ip when unspecified.
  63. #
  64. # The ip variable is used for specific address binding, e.g. listen address
  65. # for etcd. This is use to help with environments like Vagrant or multi-nic
  66. # systems where one address should be preferred over another.
  67. # ip: 10.2.2.2
  68. #
  69. # The access_ip variable is used to define how other nodes should access
  70. # the node. This is used in flannel to allow other flannel nodes to see
  71. # this node for example. The access_ip is really useful AWS and Google
  72. # environments where the nodes are accessed remotely by the "public" ip,
  73. # but don't know about that address themselves.
  74. # access_ip: 1.1.1.1
  75. # Etcd access modes:
  76. # Enable multiaccess to configure clients to access all of the etcd members directly
  77. # as the "http://hostX:port, http://hostY:port, ..." and ignore the proxy loadbalancers.
  78. # This may be the case if clients support and loadbalance multiple etcd servers natively.
  79. etcd_multiaccess: true
  80. # Assume there are no internal loadbalancers for apiservers exist and listen on
  81. # kube_apiserver_port (default 443)
  82. loadbalancer_apiserver_localhost: true
  83. # Choose network plugin (calico, weave or flannel)
  84. # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
  85. kube_network_plugin: flannel
  86. # Kubernetes internal network for services, unused block of space.
  87. kube_service_addresses: 10.233.0.0/18
  88. # internal network. When used, it will assign IP
  89. # addresses from this range to individual pods.
  90. # This network must be unused in your network infrastructure!
  91. kube_pods_subnet: 10.233.64.0/18
  92. # internal network total size (optional). This is the prefix of the
  93. # entire network. Must be unused in your environment.
  94. # kube_network_prefix: 18
  95. # internal network node size allocation (optional). This is the size allocated
  96. # to each node on your network. With these defaults you should have
  97. # room for 4096 nodes with 254 pods per node.
  98. kube_network_node_prefix: 24
  99. # With calico it is possible to distributed routes with border routers of the datacenter.
  100. peer_with_router: false
  101. # Warning : enabling router peering will disable calico's default behavior ('node mesh').
  102. # The subnets of each nodes will be distributed by the datacenter router
  103. # The port the API Server will be listening on.
  104. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  105. kube_apiserver_port: 443 # (https)
  106. kube_apiserver_insecure_port: 8080 # (http)
  107. # local loadbalancer should use this port instead - default to kube_apiserver_port
  108. nginx_kube_apiserver_port: "{{ kube_apiserver_port }}"
  109. # Internal DNS configuration.
  110. # Kubernetes can create and mainatain its own DNS server to resolve service names
  111. # into appropriate IP addresses. It's highly advisable to run such DNS server,
  112. # as it greatly simplifies configuration of your applications - you can use
  113. # service names instead of magic environment variables.
  114. # Can be dnsmasq_kubedns, kubedns or none
  115. dns_mode: dnsmasq_kubedns
  116. # Can be docker_dns, host_resolvconf or none
  117. resolvconf_mode: docker_dns
  118. ## Upstream dns servers used by dnsmasq
  119. #upstream_dns_servers:
  120. # - 8.8.8.8
  121. # - 8.8.4.4
  122. dns_domain: "{{ cluster_name }}"
  123. # Ip address of the kubernetes skydns service
  124. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  125. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  126. # There are some changes specific to the cloud providers
  127. # for instance we need to encapsulate packets with some network plugins
  128. # If set the possible values are either 'gce', 'aws', 'azure' or 'openstack'
  129. # When openstack is used make sure to source in the openstack credentials
  130. # like you would do when using nova-client before starting the playbook.
  131. # When azure is used, you need to also set the following variables.
  132. # cloud_provider:
  133. # see docs/azure.md for details on how to get these values
  134. #azure_tenant_id:
  135. #azure_subscription_id:
  136. #azure_aad_client_id:
  137. #azure_aad_client_secret:
  138. #azure_resource_group:
  139. #azure_location:
  140. #azure_subnet_name:
  141. #azure_security_group_name:
  142. #azure_vnet_name:
  143. #azure_route_table_name:
  144. ## Set these proxy values in order to update docker daemon to use proxies
  145. # http_proxy: ""
  146. # https_proxy: ""
  147. # no_proxy: ""
  148. # Path used to store Docker data
  149. docker_daemon_graph: "/var/lib/docker"
  150. ## A string of extra options to pass to the docker daemon.
  151. ## This string should be exactly as you wish it to appear.
  152. ## An obvious use case is allowing insecure-registry access
  153. ## to self hosted registries like so:
  154. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }}"
  155. docker_bin_dir: "/usr/bin"
  156. ## Uncomment this if you want to force overlay/overlay2 as docker storage driver
  157. ## Please note that overlay2 is only supported on newer kernels
  158. #docker_storage_options: -s overlay2
  159. # K8s image pull policy (imagePullPolicy)
  160. k8s_image_pull_policy: IfNotPresent
  161. # default packages to install within the cluster
  162. kpm_packages: []
  163. # - name: kube-system/grafana
  164. # Settings for containerized control plane (etcd/kubelet)
  165. rkt_version: 1.21.0
  166. etcd_deployment_type: docker
  167. kubelet_deployment_type: docker
  168. vault_deployment_type: docker
  169. efk_enabled: false
  170. ## Certificate Management
  171. ## This setting determines whether certs are generated via scripts or whether a
  172. ## cluster of Hashicorp's Vault is started to issue certificates (using etcd
  173. ## as a backend). Options are "script" or "vault"
  174. cert_management: script