mirror of https://github.com/k3s-io/k3s
juju: Set kubelet dynamic-config-dir on Kubernetes 1.11+ (#144)
parent
2f5735372d
commit
577849693e
|
@ -749,6 +749,9 @@ def configure_kubelet(dns, ingress_ip):
|
|||
if is_state('kubernetes-worker.gpu.enabled'):
|
||||
kubelet_opts['feature-gates'] = 'DevicePlugins=true'
|
||||
|
||||
if get_version('kubelet') >= (1, 11):
|
||||
kubelet_opts['dynamic-config-dir'] = '/root/cdk/kubelet/dynamic-config'
|
||||
|
||||
configure_kubernetes_service('kubelet', kubelet_opts, 'kubelet-extra-args')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue