Merge pull request #1004 from galthaus/kubelet-load-modules
Allow kubelet to load kernel modules
This commit is contained in:
commit
60f1936a62
4 changed files with 17 additions and 0 deletions
|
@ -92,6 +92,10 @@ Stack](https://github.com/kubernetes-incubator/kargo/blob/master/docs/dns-stack.
|
||||||
``--insecure-registry=myregistry.mydomain:5000``
|
``--insecure-registry=myregistry.mydomain:5000``
|
||||||
* *http_proxy/https_proxy/no_proxy* - Proxy variables for deploying behind a
|
* *http_proxy/https_proxy/no_proxy* - Proxy variables for deploying behind a
|
||||||
proxy
|
proxy
|
||||||
|
* *kubelet_load_modules* - For some things, kubelet needs to load kernel modules. For example,
|
||||||
|
dynamic kernel services are needed for mounting persistent volumes into containers. These may not be
|
||||||
|
loaded by preinstall kubernetes processes. For example, ceph and rbd backed volumes. Set this variable to
|
||||||
|
true to let kubelet load kernel modules.
|
||||||
|
|
||||||
#### User accounts
|
#### User accounts
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,14 @@ kube_log_level: 2
|
||||||
# 1.5 default behavior. The flag is actually only added if the used kubernetes version is >= 1.5
|
# 1.5 default behavior. The flag is actually only added if the used kubernetes version is >= 1.5
|
||||||
kube_api_anonymous_auth: false
|
kube_api_anonymous_auth: false
|
||||||
|
|
||||||
|
#
|
||||||
|
# For some things, kubelet needs to load kernel modules. For example, dynamic kernel services are needed
|
||||||
|
# for mounting persistent volumes into containers. These may not be loaded by preinstall kubernetes
|
||||||
|
# processes. For example, ceph and rbd backed volumes. Set to true to allow kubelet to load kernel
|
||||||
|
# modules.
|
||||||
|
#
|
||||||
|
kubelet_load_modules: false
|
||||||
|
|
||||||
# Users to create for basic auth in Kubernetes API via HTTP
|
# Users to create for basic auth in Kubernetes API via HTTP
|
||||||
kube_api_pwd: "changeme"
|
kube_api_pwd: "changeme"
|
||||||
kube_users:
|
kube_users:
|
||||||
|
|
|
@ -33,3 +33,5 @@ etcd_config_dir: /etc/ssl/etcd
|
||||||
# A port range to reserve for services with NodePort visibility.
|
# A port range to reserve for services with NodePort visibility.
|
||||||
# Inclusive at both ends of the range.
|
# Inclusive at both ends of the range.
|
||||||
kube_apiserver_node_port_range: "30000-32767"
|
kube_apiserver_node_port_range: "30000-32767"
|
||||||
|
|
||||||
|
kubelet_load_modules: false
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
{% for dir in ssl_ca_dirs -%}
|
{% for dir in ssl_ca_dirs -%}
|
||||||
-v {{ dir }}:{{ dir }}:ro \
|
-v {{ dir }}:{{ dir }}:ro \
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
{% if kubelet_load_modules -%}
|
||||||
|
-v /lib/modules:/lib/modules:ro \
|
||||||
|
{% endif -%}
|
||||||
-v /sys:/sys:ro \
|
-v /sys:/sys:ro \
|
||||||
-v {{ docker_daemon_graph }}:/var/lib/docker:rw \
|
-v {{ docker_daemon_graph }}:/var/lib/docker:rw \
|
||||||
-v /var/lib/kubelet:/var/lib/kubelet:shared \
|
-v /var/lib/kubelet:/var/lib/kubelet:shared \
|
||||||
|
|
Loading…
Reference in a new issue