From 1f0f92e64b964a6f633068bd057c376a0750d8ff Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Fri, 8 Jul 2016 16:45:34 +0200 Subject: [PATCH] Add hostpath dynamic provisioner for PetSets Defaults to false. Use with v1.3 only. Signed-off-by: Bogdan Dobrelya --- .../templates/manifests/kube-controller-manager.manifest.j2 | 1 + roles/kubernetes/node/defaults/main.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 index 3ae4c18fc..29c56e6a8 100644 --- a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 @@ -15,6 +15,7 @@ spec: - --leader-elect=true - --service-account-private-key-file={{ kube_cert_dir }}/apiserver-key.pem - --root-ca-file={{ kube_cert_dir }}/ca.pem + - --enable-hostpath-provisioner={{ kube_hostpath_dynamic_provisioner }} - --v={{ kube_log_level | default('2') }} {% if cloud_provider is defined and cloud_provider == "openstack" %} - --cloud-provider=openstack diff --git a/roles/kubernetes/node/defaults/main.yml b/roles/kubernetes/node/defaults/main.yml index 3418b9ad1..457ef1709 100644 --- a/roles/kubernetes/node/defaults/main.yml +++ b/roles/kubernetes/node/defaults/main.yml @@ -31,6 +31,10 @@ dns_domain: "{{ cluster_name }}" kube_proxy_mode: userspace +# An experimental dev/test only dynamic volumes provisioner, +# for PetSets. Works for kube>=v1.3 only. +kube_hostpath_dynamic_provisioner: "false" + hyperkube_image_repo: "quay.io/smana/kubernetes-hyperkube" hyperkube_image_tag: "{{ kube_version }}"