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.

86 lines
3.1 KiB

  1. # Directory where the binaries will be installed
  2. bin_dir: /usr/local/bin
  3. # Where the binaries will be downloaded.
  4. # Note: ensure that you've enough disk space (about 1G)
  5. local_release_dir: "/tmp/releases"
  6. # Cluster Loglevel configuration
  7. kube_log_level: 2
  8. # Users to create for basic auth in Kubernetes API via HTTP
  9. kube_users:
  10. kube:
  11. pass: changeme
  12. role: admin
  13. # root:
  14. # pass: changeme
  15. # role: admin
  16. # Kubernetes cluster name, also will be used as DNS domain
  17. cluster_name: cluster.local
  18. # set this variable to calico if needed. keep it empty if flannel is used
  19. kube_network_plugin: calico
  20. # Kubernetes internal network for services, unused block of space.
  21. kube_service_addresses: 10.233.0.0/18
  22. # internal network. When used, it will assign IP
  23. # addresses from this range to individual pods.
  24. # This network must be unused in your network infrastructure!
  25. kube_pods_subnet: 10.233.64.0/18
  26. # internal network total size (optional). This is the prefix of the
  27. # entire network. Must be unused in your environment.
  28. # kube_network_prefix: 18
  29. # internal network node size allocation (optional). This is the size allocated
  30. # to each node on your network. With these defaults you should have
  31. # room for 4096 nodes with 254 pods per node.
  32. kube_network_node_prefix: 24
  33. # With calico it is possible to distributed routes with border routers of the datacenter.
  34. peer_with_router: false
  35. # Warning : enabling router peering will disable calico's default behavior ('node mesh').
  36. # The subnets of each nodes will be distributed by the datacenter router
  37. # The port the API Server will be listening on.
  38. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  39. kube_apiserver_port: 443 # (https)
  40. kube_apiserver_insecure_port: 8080 # (http)
  41. # Internal DNS configuration.
  42. # Kubernetes can create and mainatain its own DNS server to resolve service names
  43. # into appropriate IP addresses. It's highly advisable to run such DNS server,
  44. # as it greatly simplifies configuration of your applications - you can use
  45. # service names instead of magic environment variables.
  46. # You still must manually configure all your containers to use this DNS server,
  47. # Kubernetes won't do this for you (yet).
  48. # Upstream dns servers used by dnsmasq
  49. upstream_dns_servers:
  50. - 8.8.8.8
  51. - 4.4.8.8
  52. #
  53. # # Use dns server : https://github.com/ansibl8s/k8s-skydns/blob/master/skydns-README.md
  54. dns_setup: true
  55. dns_domain: "{{ cluster_name }}"
  56. #
  57. # # Ip address of the kubernetes dns service
  58. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(253)|ipaddr('address') }}"
  59. # For multi masters architecture:
  60. # kube-proxy doesn't support multiple apiservers for the time being so you'll need to configure your own loadbalancer
  61. # This domain name will be inserted into the /etc/hosts file of all servers
  62. # configuration example with haproxy :
  63. # listen kubernetes-apiserver-https
  64. # bind 10.99.0.21:8383
  65. # option ssl-hello-chk
  66. # mode tcp
  67. # timeout client 3h
  68. # timeout server 3h
  69. # server master1 10.99.0.26:443
  70. # server master2 10.99.0.27:443
  71. # balance roundrobin
  72. # apiserver_loadbalancer_domain_name: "lb-apiserver.kubernetes.local"