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.

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