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.

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