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.

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