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.

137 lines
4.6 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. ## It is possible to activate / deactivate selected authentication methods (basic auth, static token auth)
  47. #kube_oidc_auth: false
  48. #kube_basic_auth: false
  49. #kube_token_auth: false
  50. ## Variables for OpenID Connect Configuration https://kubernetes.io/docs/admin/authentication/
  51. ## To use OpenID you have to deploy additional an OpenID Provider (e.g Dex, Keycloak, ...)
  52. # kube_oidc_url: https:// ...
  53. # kube_oidc_client_id: kubernetes
  54. ## Optional settings for OIDC
  55. # kube_oidc_ca_file: {{ kube_cert_dir }}/ca.pem
  56. # kube_oidc_username_claim: sub
  57. # kube_oidc_groups_claim: groups
  58. # Choose network plugin (calico, weave or flannel)
  59. # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
  60. kube_network_plugin: calico
  61. # Kubernetes internal network for services, unused block of space.
  62. kube_service_addresses: 10.233.0.0/18
  63. # internal network. When used, it will assign IP
  64. # addresses from this range to individual pods.
  65. # This network must be unused in your network infrastructure!
  66. kube_pods_subnet: 10.233.64.0/18
  67. # internal network node size allocation (optional). This is the size allocated
  68. # to each node on your network. With these defaults you should have
  69. # room for 4096 nodes with 254 pods per node.
  70. kube_network_node_prefix: 24
  71. # The port the API Server will be listening on.
  72. kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
  73. kube_apiserver_port: 6443 # (https)
  74. kube_apiserver_insecure_port: 8080 # (http)
  75. # DNS configuration.
  76. # Kubernetes cluster name, also will be used as DNS domain
  77. cluster_name: cluster.local
  78. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  79. ndots: 2
  80. # Can be dnsmasq_kubedns, kubedns or none
  81. dns_mode: dnsmasq_kubedns
  82. # Can be docker_dns, host_resolvconf or none
  83. resolvconf_mode: docker_dns
  84. # Deploy netchecker app to verify DNS resolve as an HTTP service
  85. deploy_netchecker: false
  86. # Ip address of the kubernetes skydns service
  87. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  88. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  89. dns_domain: "{{ cluster_name }}"
  90. # Path used to store Docker data
  91. docker_daemon_graph: "/var/lib/docker"
  92. ## A string of extra options to pass to the docker daemon.
  93. ## This string should be exactly as you wish it to appear.
  94. ## An obvious use case is allowing insecure-registry access
  95. ## to self hosted registries like so:
  96. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }}"
  97. docker_bin_dir: "/usr/bin"
  98. # Settings for containerized control plane (etcd/kubelet/secrets)
  99. etcd_deployment_type: docker
  100. kubelet_deployment_type: docker
  101. cert_management: script
  102. vault_deployment_type: docker
  103. # K8s image pull policy (imagePullPolicy)
  104. k8s_image_pull_policy: IfNotPresent
  105. # Monitoring apps for k8s
  106. efk_enabled: false