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.

119 lines
4.2 KiB

  1. ## Required for bootstrap-os/preinstall/download roles and setting facts
  2. # Valid bootstrap options (required): ubuntu, coreos, centos, none
  3. bootstrap_os: none
  4. kube_api_anonymous_auth: false
  5. ## Change this to use another Kubernetes version, e.g. a current beta release
  6. kube_version: v1.6.1
  7. # Directory where the binaries will be installed
  8. bin_dir: /usr/local/bin
  9. docker_bin_dir: /usr/bin
  10. etcd_data_dir: /var/lib/etcd
  11. # Where the binaries will be downloaded.
  12. # Note: ensure that you've enough disk space (about 1G)
  13. local_release_dir: "/tmp/releases"
  14. # Random shifts for retrying failed ops like pushing/downloading
  15. retry_stagger: 5
  16. # DNS configuration.
  17. # Kubernetes cluster name, also will be used as DNS domain
  18. cluster_name: cluster.local
  19. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  20. ndots: 2
  21. # Can be dnsmasq_kubedns, kubedns or none
  22. dns_mode: dnsmasq_kubedns
  23. # Can be docker_dns, host_resolvconf or none
  24. resolvconf_mode: docker_dns
  25. # Deploy netchecker app to verify DNS resolve as an HTTP service
  26. deploy_netchecker: false
  27. # Ip address of the kubernetes skydns service
  28. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  29. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  30. dns_domain: "{{ cluster_name }}"
  31. # Kubernetes configuration dirs and system namespace.
  32. # Those are where all the additional config stuff goes
  33. # the kubernetes normally puts in /srv/kubernets.
  34. # This puts them in a sane location and namespace.
  35. # Editting those values will almost surely break something.
  36. kube_config_dir: /etc/kubernetes
  37. kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
  38. kube_manifest_dir: "{{ kube_config_dir }}/manifests"
  39. system_namespace: kube-system
  40. # Logging directory (sysvinit systems)
  41. kube_log_dir: "/var/log/kubernetes"
  42. # This is where all the cert scripts and certs will be located
  43. kube_cert_dir: "{{ kube_config_dir }}/ssl"
  44. # This is where all of the bearer tokens will be stored
  45. kube_token_dir: "{{ kube_config_dir }}/tokens"
  46. # This is where to save basic auth file
  47. kube_users_dir: "{{ kube_config_dir }}/users"
  48. # This is the group that the cert creation scripts chgrp the
  49. # cert files to. Not really changable...
  50. kube_cert_group: kube-cert
  51. # Cluster Loglevel configuration
  52. kube_log_level: 2
  53. # Users to create for basic auth in Kubernetes API via HTTP
  54. kube_api_pwd: "changeme"
  55. kube_users:
  56. kube:
  57. pass: "{{kube_api_pwd}}"
  58. role: admin
  59. root:
  60. pass: "{{kube_api_pwd}}"
  61. role: admin
  62. # Choose network plugin (calico, weave or flannel)
  63. # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
  64. kube_network_plugin: calico
  65. # Kubernetes internal network for services, unused block of space.
  66. kube_service_addresses: 10.233.0.0/18
  67. # internal network. When used, it will assign IP
  68. # addresses from this range to individual pods.
  69. # This network must be unused in your network infrastructure!
  70. kube_pods_subnet: 10.233.64.0/18
  71. # internal network node size allocation (optional). This is the size allocated
  72. # to each node on your network. With these defaults you should have
  73. # room for 4096 nodes with 254 pods per node.
  74. kube_network_node_prefix: 24
  75. # The port the API Server will be listening on.
  76. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  77. kube_apiserver_port: 6443 # (https)
  78. kube_apiserver_insecure_port: 8080 # (http)
  79. # Path used to store Docker data
  80. docker_daemon_graph: "/var/lib/docker"
  81. # Docker log options
  82. # Rotate container stderr/stdout logs at 50m and keep last 5
  83. docker_log_opts: "--log-opt max-size=50m --log-opt max-file=5"
  84. ## A string of extra options to pass to the docker daemon.
  85. ## This string should be exactly as you wish it to appear.
  86. ## An obvious use case is allowing insecure-registry access
  87. ## to self hosted registries like so:
  88. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }} {{ docker_log_opts }}"
  89. # Settings for containerized control plane (etcd/kubelet/secrets)
  90. etcd_deployment_type: docker
  91. kubelet_deployment_type: docker
  92. cert_management: script
  93. vault_deployment_type: docker
  94. # K8s image pull policy (imagePullPolicy)
  95. k8s_image_pull_policy: IfNotPresent
  96. efk_enabled: false
  97. enable_network_policy: false