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.

118 lines
4.0 KiB

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