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.

90 lines
2.7 KiB

  1. ---
  2. # Valid options: docker (default), rkt, or host
  3. kubelet_deployment_type: host
  4. # change to 0.0.0.0 to enable insecure access from anywhere (not recommended)
  5. kube_apiserver_insecure_bind_address: 127.0.0.1
  6. # advertised host IP for kubelet. This affects network plugin config. Take caution
  7. kubelet_address: "{{ ip | default(ansible_default_ipv4['address']) }}"
  8. # bind address for kubelet. Set to 0.0.0.0 to listen on all interfaces
  9. kubelet_bind_address: "{{ ip | default('0.0.0.0') }}"
  10. # resolv.conf to base dns config
  11. kube_resolv_conf: "/etc/resolv.conf"
  12. kube_proxy_mode: iptables
  13. # If using the pure iptables proxy, SNAT everything. Note that it breaks any
  14. # policy engine.
  15. kube_proxy_masquerade_all: false
  16. # These options reflect limitations of running kubelet in a container.
  17. # Modify at your own risk
  18. kubelet_enable_cri: true
  19. kubelet_cgroups_per_qos: true
  20. # Set to empty to avoid cgroup creation
  21. kubelet_enforce_node_allocatable: "\"\""
  22. # Set false to enable sharing a pid namespace between containers in a pod.
  23. # Note that PID namespace sharing requires docker >= 1.13.1.
  24. kubelet_disable_shared_pid: true
  25. ### fail with swap on (default true)
  26. kubelet_fail_swap_on: true
  27. # Reserve this space for system resources
  28. kubelet_memory_limit: 256M
  29. kubelet_cpu_limit: 100m
  30. # Reservation for master hosts
  31. kubelet_master_memory_limit: 512M
  32. kubelet_master_cpu_limit: 200m
  33. kubelet_status_update_frequency: 10s
  34. # Limits for kube components and nginx load balancer app
  35. kube_proxy_memory_limit: 2000M
  36. kube_proxy_cpu_limit: 500m
  37. kube_proxy_memory_requests: 64M
  38. kube_proxy_cpu_requests: 150m
  39. nginx_memory_limit: 512M
  40. nginx_cpu_limit: 300m
  41. nginx_memory_requests: 32M
  42. nginx_cpu_requests: 25m
  43. # kube_api_runtime_config:
  44. # - extensions/v1beta1/daemonsets=true
  45. # - extensions/v1beta1/deployments=true
  46. nginx_image_repo: nginx
  47. nginx_image_tag: 1.13
  48. etcd_config_dir: /etc/ssl/etcd
  49. kubelet_flexvolumes_plugins_dir: /var/lib/kubelet/volume-plugins
  50. # A port range to reserve for services with NodePort visibility.
  51. # Inclusive at both ends of the range.
  52. kube_apiserver_node_port_range: "30000-32767"
  53. kubelet_load_modules: false
  54. ## Support custom flags to be passed to kubelet
  55. kubelet_custom_flags: []
  56. # This setting is used for rkt based kubelet for deploying hyperkube
  57. # from a docker based registry ( controls --insecure and docker:// )
  58. ## Empty vaule for quay.io containers
  59. ## docker for docker registry containers
  60. kube_hyperkube_image_repo: ""
  61. # If non-empty, will use this string as identification instead of the actual hostname
  62. kube_override_hostname: >-
  63. {%- if cloud_provider is defined and cloud_provider in [ 'aws' ] -%}
  64. {%- else -%}
  65. {{ ansible_hostname }}
  66. {%- endif -%}
  67. # cAdvisor port
  68. kube_cadvisor_port: 0