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.

112 lines
4.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. # For some environments, each node has a pubilcally accessible
  22. # address and an address it should bind services to. These are
  23. # really inventory level variables, but described here for consistency.
  24. #
  25. # When advertising access, the access_ip will be used, but will defer to
  26. # ip and then the default ansible ip when unspecified.
  27. #
  28. # When binding to restrict access, the ip variable will be used, but will
  29. # defer to the default ansible ip when unspecified.
  30. #
  31. # The ip variable is used for specific address binding, e.g. listen address
  32. # for etcd. This is use to help with environments like Vagrant or multi-nic
  33. # systems where one address should be preferred over another.
  34. # ip: 10.2.2.2
  35. #
  36. # The access_ip variable is used to define how other nodes should access
  37. # the node. This is used in flannel to allow other flannel nodes to see
  38. # this node for example. The access_ip is really useful AWS and Google
  39. # environments where the nodes are accessed remotely by the "public" ip,
  40. # but don't know about that address themselves.
  41. # access_ip: 1.1.1.1
  42. # Choose network plugin (calico, weave or flannel)
  43. kube_network_plugin: calico
  44. # Kubernetes internal network for services, unused block of space.
  45. kube_service_addresses: 10.233.0.0/18
  46. # internal network. When used, it will assign IP
  47. # addresses from this range to individual pods.
  48. # This network must be unused in your network infrastructure!
  49. kube_pods_subnet: 10.233.64.0/18
  50. # internal network total size (optional). This is the prefix of the
  51. # entire network. Must be unused in your environment.
  52. # kube_network_prefix: 18
  53. # internal network node size allocation (optional). This is the size allocated
  54. # to each node on your network. With these defaults you should have
  55. # room for 4096 nodes with 254 pods per node.
  56. kube_network_node_prefix: 24
  57. # With calico it is possible to distributed routes with border routers of the datacenter.
  58. peer_with_router: false
  59. # Warning : enabling router peering will disable calico's default behavior ('node mesh').
  60. # The subnets of each nodes will be distributed by the datacenter router
  61. # The port the API Server will be listening on.
  62. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  63. kube_apiserver_port: 443 # (https)
  64. kube_apiserver_insecure_port: 8080 # (http)
  65. # Internal DNS configuration.
  66. # Kubernetes can create and mainatain its own DNS server to resolve service names
  67. # into appropriate IP addresses. It's highly advisable to run such DNS server,
  68. # as it greatly simplifies configuration of your applications - you can use
  69. # service names instead of magic environment variables.
  70. # You still must manually configure all your containers to use this DNS server,
  71. # Kubernetes won't do this for you (yet).
  72. # Upstream dns servers used by dnsmasq
  73. upstream_dns_servers:
  74. - 8.8.8.8
  75. - 4.4.8.8
  76. #
  77. # # Use dns server : https://github.com/ansibl8s/k8s-skydns/blob/master/skydns-README.md
  78. dns_setup: true
  79. dns_domain: "{{ cluster_name }}"
  80. #
  81. # # Ip address of the kubernetes dns service
  82. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  83. # For multi masters architecture:
  84. # kube-proxy doesn't support multiple apiservers for the time being so you'll need to configure your own loadbalancer
  85. # This domain name will be inserted into the /etc/hosts file of all servers
  86. # configuration example with haproxy :
  87. # listen kubernetes-apiserver-https
  88. # bind 10.99.0.21:8383
  89. # option ssl-hello-chk
  90. # mode tcp
  91. # timeout client 3h
  92. # timeout server 3h
  93. # server master1 10.99.0.26:443
  94. # server master2 10.99.0.27:443
  95. # balance roundrobin
  96. # apiserver_loadbalancer_domain_name: "lb-apiserver.kubernetes.local"