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.

204 lines
7.6 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 explicetely 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: "changeme"
  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 pubilcally 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. # Internal DNS configuration.
  108. # Kubernetes can create and mainatain its own DNS server to resolve service names
  109. # into appropriate IP addresses. It's highly advisable to run such DNS server,
  110. # as it greatly simplifies configuration of your applications - you can use
  111. # service names instead of magic environment variables.
  112. # Can be dnsmasq_kubedns, kubedns or none
  113. dns_mode: dnsmasq_kubedns
  114. # Can be docker_dns, host_resolvconf or none
  115. resolvconf_mode: docker_dns
  116. ## Upstream dns servers used by dnsmasq
  117. #upstream_dns_servers:
  118. # - 8.8.8.8
  119. # - 8.8.4.4
  120. dns_domain: "{{ cluster_name }}"
  121. # Ip address of the kubernetes skydns service
  122. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  123. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  124. # There are some changes specific to the cloud providers
  125. # for instance we need to encapsulate packets with some network plugins
  126. # If set the possible values are either 'gce', 'aws', 'azure' or 'openstack'
  127. # When openstack is used make sure to source in the openstack credentials
  128. # like you would do when using nova-client before starting the playbook.
  129. # When azure is used, you need to also set the following variables.
  130. # cloud_provider:
  131. # see docs/azure.md for details on how to get these values
  132. #azure_tenant_id:
  133. #azure_subscription_id:
  134. #azure_aad_client_id:
  135. #azure_aad_client_secret:
  136. #azure_resource_group:
  137. #azure_location:
  138. #azure_subnet_name:
  139. #azure_security_group_name:
  140. #azure_vnet_name:
  141. #azure_route_table_name:
  142. ## Set these proxy values in order to update docker daemon to use proxies
  143. # http_proxy: ""
  144. # https_proxy: ""
  145. # no_proxy: ""
  146. # Path used to store Docker data
  147. docker_daemon_graph: "/var/lib/docker"
  148. ## A string of extra options to pass to the docker daemon.
  149. ## This string should be exactly as you wish it to appear.
  150. ## An obvious use case is allowing insecure-registry access
  151. ## to self hosted registries like so:
  152. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }}"
  153. docker_bin_dir: "/usr/bin"
  154. ## Uncomment this if you want to force overlay/overlay2 as docker storage driver
  155. ## Please note that overlay2 is only supported on newer kernels
  156. #docker_storage_options: -s overlay2
  157. # K8s image pull policy (imagePullPolicy)
  158. k8s_image_pull_policy: IfNotPresent
  159. # default packages to install within the cluster
  160. kpm_packages: []
  161. # - name: kube-system/grafana
  162. # Settings for containerized control plane (etcd/kubelet)
  163. rkt_version: 1.21.0
  164. etcd_deployment_type: docker
  165. kubelet_deployment_type: docker