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.

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