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.

122 lines
4.3 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.4
  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: 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. # This is where all the cert scripts and certs will be located
  41. kube_cert_dir: "{{ kube_config_dir }}/ssl"
  42. # This is where all of the bearer tokens will be stored
  43. kube_token_dir: "{{ kube_config_dir }}/tokens"
  44. # This is where to save basic auth file
  45. kube_users_dir: "{{ kube_config_dir }}/users"
  46. # This is the group that the cert creation scripts chgrp the
  47. # cert files to. Not really changable...
  48. kube_cert_group: kube-cert
  49. # Cluster Loglevel configuration
  50. kube_log_level: 2
  51. # Users to create for basic auth in Kubernetes API via HTTP
  52. kube_api_pwd: "changeme"
  53. kube_users:
  54. kube:
  55. pass: "{{kube_api_pwd}}"
  56. role: admin
  57. root:
  58. pass: "{{kube_api_pwd}}"
  59. role: admin
  60. # Choose network plugin (calico, weave or flannel)
  61. # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
  62. kube_network_plugin: calico
  63. # Kubernetes internal network for services, unused block of space.
  64. kube_service_addresses: 10.233.0.0/18
  65. # internal network. When used, it will assign IP
  66. # addresses from this range to individual pods.
  67. # This network must be unused in your network infrastructure!
  68. kube_pods_subnet: 10.233.64.0/18
  69. # internal network node size allocation (optional). This is the size allocated
  70. # to each node on your network. With these defaults you should have
  71. # room for 4096 nodes with 254 pods per node.
  72. kube_network_node_prefix: 24
  73. # The port the API Server will be listening on.
  74. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  75. kube_apiserver_port: 6443 # (https)
  76. kube_apiserver_insecure_port: 8080 # (http)
  77. # Path used to store Docker data
  78. docker_daemon_graph: "/var/lib/docker"
  79. # Docker log options
  80. # Rotate container stderr/stdout logs at 50m and keep last 5
  81. docker_log_opts: "--log-opt max-size=50m --log-opt max-file=5"
  82. ## A string of extra options to pass to the docker daemon.
  83. ## This string should be exactly as you wish it to appear.
  84. ## An obvious use case is allowing insecure-registry access
  85. ## to self hosted registries like so:
  86. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }} {{ docker_log_opts }}"
  87. # Settings for containerized control plane (etcd/kubelet/secrets)
  88. etcd_deployment_type: docker
  89. kubelet_deployment_type: docker
  90. cert_management: script
  91. vault_deployment_type: docker
  92. # K8s image pull policy (imagePullPolicy)
  93. k8s_image_pull_policy: IfNotPresent
  94. efk_enabled: false
  95. enable_network_policy: false
  96. ## List of authorization modes that must be configured for
  97. ## the k8s cluster. Only 'AlwaysAllow','AlwaysDeny', and
  98. ## 'RBAC' modes are tested.
  99. authorization_modes: []
  100. rbac_enabled: "{{ 'RBAC' in authorization_modes }}"