juju: Set kubelet dynamic-config-dir on Kubernetes 1.11+ (#144)

pull/8/head
George Kraft 2018-08-09 04:25:05 -05:00 committed by cdkbot
parent 2f5735372d
commit 577849693e
1 changed files with 3 additions and 0 deletions

View File

@ -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')