Browse Source

fix kubelet_flexvolumes_plugins_dir undefined (#6645) (#6670)

Co-authored-by: w33dw0r7d <w33dw0r7d@gmail.com>
pull/6720/head
Florian Ruynat 4 years ago
committed by GitHub
parent
commit
fbbbd90732
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. 4
      roles/kubernetes-apps/external_cloud_controller/openstack/templates/external-openstack-cloud-controller-manager-ds.yml.j2

4
roles/kubernetes-apps/external_cloud_controller/openstack/templates/external-openstack-cloud-controller-manager-ds.yml.j2

@ -59,8 +59,10 @@ spec:
name: openstack-cacert
readOnly: true
{% endif %}
{% if kubelet_flexvolumes_plugins_dir is defined %}
- mountPath: /usr/libexec/kubernetes/kubelet-plugins/volume/exec
name: flexvolume-dir
{% endif %}
resources:
requests:
cpu: 200m
@ -69,10 +71,12 @@ spec:
value: /etc/config/cloud.conf
hostNetwork: true
volumes:
{% if kubelet_flexvolumes_plugins_dir is defined %}
- hostPath:
path: "{{ kubelet_flexvolumes_plugins_dir }}"
type: DirectoryOrCreate
name: flexvolume-dir
{% endif %}
- hostPath:
path: /etc/kubernetes/pki
type: DirectoryOrCreate

Loading…
Cancel
Save