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.

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