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.

167 lines
5.5 KiB

  1. # Kubernetes configuration dirs and system namespace.
  2. # Those are where all the additional config stuff goes
  3. # the kubernetes normally puts in /srv/kubernets.
  4. # This puts them in a sane location and namespace.
  5. # Editting those values will almost surely break something.
  6. kube_config_dir: /etc/kubernetes
  7. kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
  8. kube_manifest_dir: "{{ kube_config_dir }}/manifests"
  9. system_namespace: kube-system
  10. # Logging directory (sysvinit systems)
  11. kube_log_dir: "/var/log/kubernetes"
  12. # This is where all the cert scripts and certs will be located
  13. kube_cert_dir: "{{ kube_config_dir }}/ssl"
  14. # This is where all of the bearer tokens will be stored
  15. kube_token_dir: "{{ kube_config_dir }}/tokens"
  16. # This is where to save basic auth file
  17. kube_users_dir: "{{ kube_config_dir }}/users"
  18. kube_api_anonymous_auth: false
  19. ## Change this to use another Kubernetes version, e.g. a current beta release
  20. kube_version: v1.6.7
  21. # Where the binaries will be downloaded.
  22. # Note: ensure that you've enough disk space (about 1G)
  23. local_release_dir: "/tmp/releases"
  24. # Random shifts for retrying failed ops like pushing/downloading
  25. retry_stagger: 5
  26. # This is the group that the cert creation scripts chgrp the
  27. # cert files to. Not really changable...
  28. kube_cert_group: kube-cert
  29. # Cluster Loglevel configuration
  30. kube_log_level: 2
  31. # Users to create for basic auth in Kubernetes API via HTTP
  32. # Optionally add groups for user
  33. kube_api_pwd: "changeme"
  34. kube_users:
  35. kube:
  36. pass: "{{kube_api_pwd}}"
  37. role: admin
  38. root:
  39. pass: "{{kube_api_pwd}}"
  40. role: admin
  41. # groups:
  42. # - system:masters
  43. ## It is possible to activate / deactivate selected authentication methods (basic auth, static token auth)
  44. #kube_oidc_auth: false
  45. #kube_basic_auth: false
  46. #kube_token_auth: false
  47. ## Variables for OpenID Connect Configuration https://kubernetes.io/docs/admin/authentication/
  48. ## To use OpenID you have to deploy additional an OpenID Provider (e.g Dex, Keycloak, ...)
  49. # kube_oidc_url: https:// ...
  50. # kube_oidc_client_id: kubernetes
  51. ## Optional settings for OIDC
  52. # kube_oidc_ca_file: {{ kube_cert_dir }}/ca.pem
  53. # kube_oidc_username_claim: sub
  54. # kube_oidc_groups_claim: groups
  55. # Choose network plugin (calico, weave or flannel)
  56. # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
  57. kube_network_plugin: calico
  58. # weave's network password for encryption
  59. # if null then no network encryption
  60. # you can use --extra-vars to pass the password in command line
  61. weave_password: EnterPasswordHere
  62. # Weave uses consensus mode by default
  63. # Enabling seed mode allow to dynamically add or remove hosts
  64. # https://www.weave.works/docs/net/latest/ipam/
  65. weave_mode_seed: false
  66. # This two variable are automatically changed by the weave's role, do not manually change these values
  67. # To reset values :
  68. # weave_seed: uninitialized
  69. # weave_peers: uninitialized
  70. weave_seed: uninitialized
  71. weave_peers: uninitialized
  72. # Enable kubernetes network policies
  73. enable_network_policy: false
  74. # Kubernetes internal network for services, unused block of space.
  75. kube_service_addresses: 10.233.0.0/18
  76. # internal network. When used, it will assign IP
  77. # addresses from this range to individual pods.
  78. # This network must be unused in your network infrastructure!
  79. kube_pods_subnet: 10.233.64.0/18
  80. # internal network node size allocation (optional). This is the size allocated
  81. # to each node on your network. With these defaults you should have
  82. # room for 4096 nodes with 254 pods per node.
  83. kube_network_node_prefix: 24
  84. # The port the API Server will be listening on.
  85. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  86. kube_apiserver_port: 6443 # (https)
  87. kube_apiserver_insecure_port: 8080 # (http)
  88. # DNS configuration.
  89. # Kubernetes cluster name, also will be used as DNS domain
  90. cluster_name: cluster.local
  91. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  92. ndots: 2
  93. # Can be dnsmasq_kubedns, kubedns or none
  94. dns_mode: kubedns
  95. # Can be docker_dns, host_resolvconf or none
  96. resolvconf_mode: docker_dns
  97. # Deploy netchecker app to verify DNS resolve as an HTTP service
  98. deploy_netchecker: false
  99. # Ip address of the kubernetes skydns service
  100. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  101. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  102. dns_domain: "{{ cluster_name }}"
  103. # Path used to store Docker data
  104. docker_daemon_graph: "/var/lib/docker"
  105. ## A string of extra options to pass to the docker daemon.
  106. ## This string should be exactly as you wish it to appear.
  107. ## An obvious use case is allowing insecure-registry access
  108. ## to self hosted registries like so:
  109. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }} {{ docker_log_opts }}"
  110. docker_bin_dir: "/usr/bin"
  111. # Settings for containerized control plane (etcd/kubelet/secrets)
  112. etcd_deployment_type: docker
  113. kubelet_deployment_type: docker
  114. cert_management: script
  115. vault_deployment_type: docker
  116. # K8s image pull policy (imagePullPolicy)
  117. k8s_image_pull_policy: IfNotPresent
  118. # Monitoring apps for k8s
  119. efk_enabled: false
  120. # Helm deployment
  121. helm_enabled: false
  122. # dnsmasq
  123. # dnsmasq_upstream_dns_servers:
  124. # - /resolvethiszone.with/10.0.4.250
  125. # - 8.8.8.8
  126. # Enable creation of QoS cgroup hierarchy, if true top level QoS and pod cgroups are created. (default true)
  127. # kubelet_cgroups_per_qos: true
  128. # A comma separated list of levels of node allocatable enforcement to be enforced by kubelet.
  129. # Acceptible options are 'pods', 'system-reserved', 'kube-reserved' and ''. Default is "".
  130. # kubelet_enforce_node_allocatable: pods