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.

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