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.

162 lines
6.0 KiB

  1. # Valid bootstrap options (required): ubuntu, coreos, none
  2. bootstrap_os: none
  3. # Directory where the binaries will be installed
  4. bin_dir: /usr/local/bin
  5. # Where the binaries will be downloaded.
  6. # Note: ensure that you've enough disk space (about 1G)
  7. local_release_dir: "/tmp/releases"
  8. # Random shifts for retrying failed ops like pushing/downloading
  9. retry_stagger: 5
  10. # Uncomment this line for CoreOS only.
  11. # Directory where python binary is installed
  12. # ansible_python_interpreter: "/opt/bin/python"
  13. # This is the group that the cert creation scripts chgrp the
  14. # cert files to. Not really changable...
  15. kube_cert_group: kube-cert
  16. # Cluster Loglevel configuration
  17. kube_log_level: 2
  18. # Users to create for basic auth in Kubernetes API via HTTP
  19. kube_api_pwd: "changeme"
  20. kube_users:
  21. kube:
  22. pass: "{{kube_api_pwd}}"
  23. role: admin
  24. root:
  25. pass: "changeme"
  26. role: admin
  27. # Kubernetes cluster name, also will be used as DNS domain
  28. cluster_name: cluster.local
  29. # Subdomains of DNS domain to be resolved via /etc/resolv.conf
  30. ndots: 5
  31. # Deploy netchecker app to verify DNS resolve as an HTTP service
  32. deploy_netchecker: false
  33. # For some environments, each node has a pubilcally accessible
  34. # address and an address it should bind services to. These are
  35. # really inventory level variables, but described here for consistency.
  36. #
  37. # When advertising access, the access_ip will be used, but will defer to
  38. # ip and then the default ansible ip when unspecified.
  39. #
  40. # When binding to restrict access, the ip variable will be used, but will
  41. # defer to the default ansible ip when unspecified.
  42. #
  43. # The ip variable is used for specific address binding, e.g. listen address
  44. # for etcd. This is use to help with environments like Vagrant or multi-nic
  45. # systems where one address should be preferred over another.
  46. # ip: 10.2.2.2
  47. #
  48. # The access_ip variable is used to define how other nodes should access
  49. # the node. This is used in flannel to allow other flannel nodes to see
  50. # this node for example. The access_ip is really useful AWS and Google
  51. # environments where the nodes are accessed remotely by the "public" ip,
  52. # but don't know about that address themselves.
  53. # access_ip: 1.1.1.1
  54. # Etcd access modes:
  55. # Enable multiaccess to configure clients to access all of the etcd members directly
  56. # as the "http://hostX:port, http://hostY:port, ..." and ignore the proxy loadbalancers.
  57. # This may be the case if clients support and loadbalance multiple etcd servers natively.
  58. etcd_multiaccess: true
  59. # Assume there are no internal loadbalancers for apiservers exist and listen on
  60. # kube_apiserver_port (default 443)
  61. loadbalancer_apiserver_localhost: true
  62. # Choose network plugin (calico, weave or flannel)
  63. kube_network_plugin: flannel
  64. # Kubernetes internal network for services, unused block of space.
  65. kube_service_addresses: 10.233.0.0/18
  66. # internal network. When used, it will assign IP
  67. # addresses from this range to individual pods.
  68. # This network must be unused in your network infrastructure!
  69. kube_pods_subnet: 10.233.64.0/18
  70. # internal network total size (optional). This is the prefix of the
  71. # entire network. Must be unused in your environment.
  72. # kube_network_prefix: 18
  73. # internal network node size allocation (optional). This is the size allocated
  74. # to each node on your network. With these defaults you should have
  75. # room for 4096 nodes with 254 pods per node.
  76. kube_network_node_prefix: 24
  77. # With calico it is possible to distributed routes with border routers of the datacenter.
  78. peer_with_router: false
  79. # Warning : enabling router peering will disable calico's default behavior ('node mesh').
  80. # The subnets of each nodes will be distributed by the datacenter router
  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: 443 # (https)
  84. kube_apiserver_insecure_port: 8080 # (http)
  85. # Internal DNS configuration.
  86. # Kubernetes can create and mainatain its own DNS server to resolve service names
  87. # into appropriate IP addresses. It's highly advisable to run such DNS server,
  88. # as it greatly simplifies configuration of your applications - you can use
  89. # service names instead of magic environment variables.
  90. # You still must manually configure all your containers to use this DNS server,
  91. # Kubernetes won't do this for you (yet).
  92. # Do not install additional dnsmasq
  93. skip_dnsmasq: false
  94. # Upstream dns servers used by dnsmasq
  95. #upstream_dns_servers:
  96. # - 8.8.8.8
  97. # - 8.8.4.4
  98. #
  99. # # Use dns server : https://github.com/ansibl8s/k8s-skydns/blob/master/skydns-README.md
  100. dns_setup: true
  101. dns_domain: "{{ cluster_name }}"
  102. #
  103. # # Ip address of the kubernetes skydns service
  104. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  105. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  106. # There are some changes specific to the cloud providers
  107. # for instance we need to encapsulate packets with some network plugins
  108. # If set the possible values are either 'gce', 'aws', 'azure' or 'openstack'
  109. # When openstack is used make sure to source in the openstack credentials
  110. # like you would do when using nova-client before starting the playbook.
  111. # When azure is used, you need to also set the following variables.
  112. # cloud_provider:
  113. # see docs/azure.md for details on how to get these values
  114. #azure_tenant_id:
  115. #azure_subscription_id:
  116. #azure_aad_client_id:
  117. #azure_aad_client_secret:
  118. #azure_resource_group:
  119. #azure_location:
  120. #azure_subnet_name:
  121. #azure_security_group_name:
  122. #azure_vnet_name:
  123. ## Set these proxy values in order to update docker daemon to use proxies
  124. # http_proxy: ""
  125. # https_proxy: ""
  126. # no_proxy: ""
  127. ## A string of extra options to pass to the docker daemon.
  128. ## This string should be exactly as you wish it to appear.
  129. ## An obvious use case is allowing insecure-registry access
  130. ## to self hosted registries like so:
  131. docker_options: "--insecure-registry={{ kube_service_addresses }}"
  132. # K8s image pull policy (imagePullPolicy)
  133. k8s_image_pull_policy: IfNotPresent
  134. # default packages to install within the cluster
  135. kpm_packages: []
  136. # - name: kube-system/grafana