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.

144 lines
5.5 KiB

  1. # Valid bootstrap options (required): xenial, 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. # For some environments, each node has a pubilcally accessible
  32. # address and an address it should bind services to. These are
  33. # really inventory level variables, but described here for consistency.
  34. #
  35. # When advertising access, the access_ip will be used, but will defer to
  36. # ip and then the default ansible ip when unspecified.
  37. #
  38. # When binding to restrict access, the ip variable will be used, but will
  39. # defer to the default ansible ip when unspecified.
  40. #
  41. # The ip variable is used for specific address binding, e.g. listen address
  42. # for etcd. This is use to help with environments like Vagrant or multi-nic
  43. # systems where one address should be preferred over another.
  44. # ip: 10.2.2.2
  45. #
  46. # The access_ip variable is used to define how other nodes should access
  47. # the node. This is used in flannel to allow other flannel nodes to see
  48. # this node for example. The access_ip is really useful AWS and Google
  49. # environments where the nodes are accessed remotely by the "public" ip,
  50. # but don't know about that address themselves.
  51. # access_ip: 1.1.1.1
  52. # Etcd access modes:
  53. # Enable multiaccess to configure clients to access all of the etcd members directly
  54. # as the "http://hostX:port, http://hostY:port, ..." and ignore the proxy loadbalancers.
  55. # This may be the case if clients support and loadbalance multiple etcd servers natively.
  56. etcd_multiaccess: false
  57. # Assume there are no internal loadbalancers for apiservers exist and listen on
  58. # kube_apiserver_port (default 443)
  59. loadbalancer_apiserver_localhost: true
  60. # Choose network plugin (calico, weave or flannel)
  61. kube_network_plugin: flannel
  62. # Kubernetes internal network for services, unused block of space.
  63. kube_service_addresses: 10.233.0.0/18
  64. # internal network. When used, it will assign IP
  65. # addresses from this range to individual pods.
  66. # This network must be unused in your network infrastructure!
  67. kube_pods_subnet: 10.233.64.0/18
  68. # internal network total size (optional). This is the prefix of the
  69. # entire network. Must be unused in your environment.
  70. # kube_network_prefix: 18
  71. # internal network node size allocation (optional). This is the size allocated
  72. # to each node on your network. With these defaults you should have
  73. # room for 4096 nodes with 254 pods per node.
  74. kube_network_node_prefix: 24
  75. # With calico it is possible to distributed routes with border routers of the datacenter.
  76. peer_with_router: false
  77. # Warning : enabling router peering will disable calico's default behavior ('node mesh').
  78. # The subnets of each nodes will be distributed by the datacenter router
  79. # The port the API Server will be listening on.
  80. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  81. kube_apiserver_port: 443 # (https)
  82. kube_apiserver_insecure_port: 8080 # (http)
  83. # Internal DNS configuration.
  84. # Kubernetes can create and mainatain its own DNS server to resolve service names
  85. # into appropriate IP addresses. It's highly advisable to run such DNS server,
  86. # as it greatly simplifies configuration of your applications - you can use
  87. # service names instead of magic environment variables.
  88. # You still must manually configure all your containers to use this DNS server,
  89. # Kubernetes won't do this for you (yet).
  90. # Do not install additional dnsmasq
  91. skip_dnsmasq: false
  92. # Upstream dns servers used by dnsmasq
  93. #upstream_dns_servers:
  94. # - 8.8.8.8
  95. # - 8.8.4.4
  96. #
  97. # # Use dns server : https://github.com/ansibl8s/k8s-skydns/blob/master/skydns-README.md
  98. dns_setup: true
  99. dns_domain: "{{ cluster_name }}"
  100. #
  101. # # Ip address of the kubernetes skydns service
  102. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  103. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  104. # There are some changes specific to the cloud providers
  105. # for instance we need to encapsulate packets with some network plugins
  106. # If set the possible values are either 'gce', 'aws' or 'openstack'
  107. # When openstack is used make sure to source in the openstack credentials
  108. # like you would do when using nova-client before starting the playbook.
  109. # cloud_provider:
  110. ## Set these proxy values in order to update docker daemon to use proxies
  111. # http_proxy: ""
  112. # https_proxy: ""
  113. # no_proxy: ""
  114. ## A string of extra options to pass to the docker daemon.
  115. ## This string should be exactly as you wish it to appear.
  116. ## An obvious use case is allowing insecure-registry access
  117. ## to self hosted registries like so:
  118. docker_options: "--insecure-registry={{ kube_service_addresses }}"
  119. # default packages to install within the cluster
  120. kpm_packages: []
  121. # - name: kube-system/grafana