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