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.

143 lines
4.7 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. # Enable kubernetes network policies
  62. enable_network_policy: false
  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. # DNS configuration.
  78. # Kubernetes cluster name, also will be used as DNS domain
  79. cluster_name: cluster.local
  80. # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
  81. ndots: 2
  82. # Can be dnsmasq_kubedns, kubedns or none
  83. dns_mode: dnsmasq_kubedns
  84. # Can be docker_dns, host_resolvconf or none
  85. resolvconf_mode: docker_dns
  86. # Deploy netchecker app to verify DNS resolve as an HTTP service
  87. deploy_netchecker: false
  88. # Ip address of the kubernetes skydns service
  89. skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
  90. dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
  91. dns_domain: "{{ cluster_name }}"
  92. # Path used to store Docker data
  93. docker_daemon_graph: "/var/lib/docker"
  94. ## A string of extra options to pass to the docker daemon.
  95. ## This string should be exactly as you wish it to appear.
  96. ## An obvious use case is allowing insecure-registry access
  97. ## to self hosted registries like so:
  98. docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }}"
  99. docker_bin_dir: "/usr/bin"
  100. # Settings for containerized control plane (etcd/kubelet/secrets)
  101. etcd_deployment_type: docker
  102. kubelet_deployment_type: docker
  103. cert_management: script
  104. vault_deployment_type: docker
  105. # K8s image pull policy (imagePullPolicy)
  106. k8s_image_pull_policy: IfNotPresent
  107. # Monitoring apps for k8s
  108. efk_enabled: false
  109. # Helm deployment
  110. helm_enabled: false