How to use OpenStack Cinder to create storage class and dynamically provision persistent volume in Kubernetes Cluster

前端 未结 2 1929
天涯浪人
天涯浪人 2020-12-15 14:11

Recently when practicing kubernetes , I found there is no doc and example specifically explaining how to use cinder correctly in kubernetes.

So how to setup cinder

2条回答
  •  伪装坚强ぢ
    2020-12-15 14:20

    Thanks a lot for your great share!
    The solution works for me (K8S 1.14.3, OpenStack Queen), and I just added snippets of parameter/volumeMounts/volume like below:

    Parameter:

    - --cloud-provider=openstack  
    - --cloud-config=/etc/kubernetes/cloud-config  
    

    volumeMounts:

    -- mountPath: /etc/kubernetes/cloud-config  
       name: cloud  
       readOnly: true  
    

    volume:

    -- hostPath:  
         path: /etc/kubernetes/cloud.conf  
         type: FileOrCreate  
       name: cloud
    

提交回复
热议问题