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.

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