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.

157 lines
5.7 KiB

  1. ---
  2. ## Required for bootstrap-os/preinstall/download roles and setting facts
  3. # Valid bootstrap options (required): ubuntu, coreos, centos, none
  4. bootstrap_os: none
  5. kube_api_anonymous_auth: false
  6. # Default value, but will be set to true automatically if detected
  7. is_atomic: false
  8. ## Change this to use another Kubernetes version, e.g. a current beta release
  9. kube_version: v1.6.7
  10. # Directory where the binaries will be installed
  11. bin_dir: /usr/local/bin
  12. docker_bin_dir: /usr/bin
  13. etcd_data_dir: /var/lib/etcd
  14. # Where the binaries will be downloaded.
  15. # Note: ensure that you've enough disk space (about 1G)
  16. local_release_dir: "/tmp/releases"
  17. # Random shifts for retrying failed ops like pushing/downloading
  18. retry_stagger: 5
  19. # DNS configuration.
  20. # Kubernetes cluster name, also will be used as DNS domain
  21. cluster_name: cluster.local
  22. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  23. ndots: 2
  24. # Can be dnsmasq_kubedns, kubedns or none
  25. dns_mode: kubedns
  26. # Can be docker_dns, host_resolvconf or none
  27. resolvconf_mode: docker_dns
  28. # Deploy netchecker app to verify DNS resolve as an HTTP service
  29. deploy_netchecker: false
  30. # Ip address of the kubernetes skydns service
  31. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  32. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  33. dns_domain: "{{ cluster_name }}"
  34. # Kubernetes configuration dirs and system namespace.
  35. # Those are where all the additional config stuff goes
  36. # the kubernetes normally puts in /srv/kubernets.
  37. # This puts them in a sane location and namespace.
  38. # Editting those values will almost surely break something.
  39. kube_config_dir: /etc/kubernetes
  40. kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
  41. kube_manifest_dir: "{{ kube_config_dir }}/manifests"
  42. system_namespace: kube-system
  43. # This is where all the cert scripts and certs will be located
  44. kube_cert_dir: "{{ kube_config_dir }}/ssl"
  45. # This is where all of the bearer tokens will be stored
  46. kube_token_dir: "{{ kube_config_dir }}/tokens"
  47. # This is where to save basic auth file
  48. kube_users_dir: "{{ kube_config_dir }}/users"
  49. # This is the group that the cert creation scripts chgrp the
  50. # cert files to. Not really changable...
  51. kube_cert_group: kube-cert
  52. # Cluster Loglevel configuration
  53. kube_log_level: 2
  54. # Users to create for basic auth in Kubernetes API via HTTP
  55. kube_api_pwd: "changeme"
  56. kube_users:
  57. kube:
  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. # https
  76. kube_apiserver_port: 6443
  77. # http
  78. kube_apiserver_insecure_bind_address: 127.0.0.1
  79. kube_apiserver_insecure_port: 8080
  80. # Path used to store Docker data
  81. docker_daemon_graph: "/var/lib/docker"
  82. # Docker log options
  83. # Rotate container stderr/stdout logs at 50m and keep last 5
  84. docker_log_opts: "--log-opt max-size=50m --log-opt max-file=5"
  85. ## A string of extra options to pass to the docker daemon.
  86. ## This string should be exactly as you wish it to appear.
  87. ## An obvious use case is allowing insecure-registry access
  88. ## to self hosted registries like so:
  89. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }} {{ docker_log_opts }}"
  90. # Settings for containerized control plane (etcd/kubelet/secrets)
  91. etcd_deployment_type: docker
  92. kubelet_deployment_type: docker
  93. cert_management: script
  94. vault_deployment_type: docker
  95. # Enable kubeadm deployment (experimental)
  96. kubeadm_enabled: false
  97. kubeadm_token: "abcdef.0123456789abcdef"
  98. # Make a copy of kubeconfig on the host that runs Ansible in GITDIR/artifacts
  99. kubeconfig_localhost: false
  100. # Download kubectl onto the host that runs Ansible in GITDIR/artifacts
  101. kubectl_localhost: false
  102. # K8s image pull policy (imagePullPolicy)
  103. k8s_image_pull_policy: IfNotPresent
  104. efk_enabled: false
  105. enable_network_policy: false
  106. ## When OpenStack is used, Cinder version can be explicitly specified if autodetection fails (https://github.com/kubernetes/kubernetes/issues/50461)
  107. #openstack_blockstorage_version: "v1/v2/auto (default)"
  108. ## When OpenStack is used, if LBaaSv2 is available you can enable it with the following variables.
  109. openstack_lbaas_enabled: false
  110. #openstack_lbaas_subnet_id: "Neutron subnet ID (not network ID) to create LBaaS VIP"
  111. #openstack_lbaas_floating_network_id: "Neutron network ID (not subnet ID) to get floating IP from, disabled by default"
  112. #openstack_lbaas_create_monitor: "yes"
  113. #openstack_lbaas_monitor_delay: false
  114. #openstack_lbaas_monitor_timeout: false
  115. #openstack_lbaas_monitor_max_retries: false
  116. ## List of authorization modes that must be configured for
  117. ## the k8s cluster. Only 'AlwaysAllow','AlwaysDeny', and
  118. ## 'RBAC' modes are tested.
  119. authorization_modes: []
  120. rbac_enabled: "{{ 'RBAC' in authorization_modes }}"
  121. ## List of key=value pairs that describe feature gates for
  122. ## the k8s cluster.
  123. kube_feature_gates: []
  124. # Vault data dirs.
  125. vault_base_dir: /etc/vault
  126. vault_cert_dir: "{{ vault_base_dir }}/ssl"
  127. vault_config_dir: "{{ vault_base_dir }}/config"
  128. vault_roles_dir: "{{ vault_base_dir }}/roles"
  129. vault_secrets_dir: "{{ vault_base_dir }}/secrets"