fix kubelet data dir setting
This commit is contained in:
@@ -134,6 +134,3 @@ unsafe_show_logs: false
|
|||||||
|
|
||||||
## If enabled it will allow kubespray to attempt setup even if the distribution is not supported. For unsupported distributions this can lead to unexpected failures in some cases.
|
## If enabled it will allow kubespray to attempt setup even if the distribution is not supported. For unsupported distributions this can lead to unexpected failures in some cases.
|
||||||
allow_unsupported_distribution_setup: false
|
allow_unsupported_distribution_setup: false
|
||||||
|
|
||||||
## Kubelet additional settings
|
|
||||||
kubelet_custom_flags: "--root-dir={{ .Orchestrator.KubeletDir }}"
|
|
||||||
|
|||||||
@@ -451,3 +451,7 @@ kubeadm_patches:
|
|||||||
enabled: false
|
enabled: false
|
||||||
source_dir: {{ `"{{ inventory_dir }}/patches"` }}
|
source_dir: {{ `"{{ inventory_dir }}/patches"` }}
|
||||||
dest_dir: {{ `"{{ kube_config_dir }}/patches"` }}
|
dest_dir: {{ `"{{ kube_config_dir }}/patches"` }}
|
||||||
|
|
||||||
|
## Kubelet additional settings
|
||||||
|
kubelet_custom_flags:
|
||||||
|
- "--root-dir={{ .Orchestrator.KubeletDir }}"
|
||||||
|
|||||||
@@ -128,6 +128,3 @@ unsafe_show_logs: false
|
|||||||
|
|
||||||
## If enabled it will allow kubespray to attempt setup even if the distribution is not supported. For unsupported distributions this can lead to unexpected failures in some cases.
|
## If enabled it will allow kubespray to attempt setup even if the distribution is not supported. For unsupported distributions this can lead to unexpected failures in some cases.
|
||||||
allow_unsupported_distribution_setup: false
|
allow_unsupported_distribution_setup: false
|
||||||
|
|
||||||
## Kubelet additional settings
|
|
||||||
kubelet_custom_flags: "--root-dir=/app/k8s/kubelet"
|
|
||||||
|
|||||||
@@ -404,3 +404,7 @@ kubeadm_patches:
|
|||||||
enabled: false
|
enabled: false
|
||||||
source_dir: "{{ inventory_dir }}/patches"
|
source_dir: "{{ inventory_dir }}/patches"
|
||||||
dest_dir: "{{ kube_config_dir }}/patches"
|
dest_dir: "{{ kube_config_dir }}/patches"
|
||||||
|
|
||||||
|
## Kubelet additional settings
|
||||||
|
kubelet_custom_flags:
|
||||||
|
- "--root-dir=/app/k8s/kubelet"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ kubelet_bind_address: "{{ ip | default('0.0.0.0') }}"
|
|||||||
kube_resolv_conf: "/etc/resolv.conf"
|
kube_resolv_conf: "/etc/resolv.conf"
|
||||||
|
|
||||||
# Set to empty to avoid cgroup creation
|
# Set to empty to avoid cgroup creation
|
||||||
kubelet_enforce_node_allocatable: "\"\""
|
kubelet_enforce_node_allocatable: '""'
|
||||||
|
|
||||||
# Set runtime and kubelet cgroups when using systemd as cgroup driver (default)
|
# Set runtime and kubelet cgroups when using systemd as cgroup driver (default)
|
||||||
kube_service_cgroups: "{% if kube_reserved %}{{ kube_reserved_cgroups_for_service_slice }}{% else %}system.slice{% endif %}"
|
kube_service_cgroups: "{% if kube_reserved %}{{ kube_reserved_cgroups_for_service_slice }}{% else %}system.slice{% endif %}"
|
||||||
@@ -32,7 +32,6 @@ kube_node_addresses: >-
|
|||||||
{{ hostvars[host]['ip'] | default(fallback_ips[host]) }}{{ ' ' if not loop.last else '' }}
|
{{ hostvars[host]['ip'] | default(fallback_ips[host]) }}{{ ' ' if not loop.last else '' }}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
kubelet_secure_addresses: "localhost link-local {{ kube_pods_subnet }} {{ kube_node_addresses }}"
|
kubelet_secure_addresses: "localhost link-local {{ kube_pods_subnet }} {{ kube_node_addresses }}"
|
||||||
|
|
||||||
# Reserve this space for kube resources
|
# Reserve this space for kube resources
|
||||||
# Whether to run kubelet and container-engine daemons in a dedicated cgroup. (Not required for resource reservations).
|
# Whether to run kubelet and container-engine daemons in a dedicated cgroup. (Not required for resource reservations).
|
||||||
kube_reserved: false
|
kube_reserved: false
|
||||||
@@ -266,7 +265,6 @@ conntrack_modules:
|
|||||||
- nf_conntrack
|
- nf_conntrack
|
||||||
- nf_conntrack_ipv4
|
- nf_conntrack_ipv4
|
||||||
|
|
||||||
|
|
||||||
## Enable distributed tracing for kubelet
|
## Enable distributed tracing for kubelet
|
||||||
kubelet_tracing: false
|
kubelet_tracing: false
|
||||||
kubelet_tracing_endpoint: 0.0.0.0:4317
|
kubelet_tracing_endpoint: 0.0.0.0:4317
|
||||||
|
|||||||
Reference in New Issue
Block a user