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.

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