diff --git a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml index 7650ce5d8..e303c517b 100644 --- a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml +++ b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml @@ -13,6 +13,9 @@ spec: spec: serviceAccount: csi-nodeplugin hostNetwork: true + # to use e.g. Rook orchestrated cluster, and mons' FQDN is + # resolved through k8s service, set dns policy to cluster first + dnsPolicy: ClusterFirstWithHostNet containers: - name: driver-registrar image: quay.io/k8scsi/driver-registrar:v0.3.0 diff --git a/deploy/rbd/kubernetes/csi-rbdplugin.yaml b/deploy/rbd/kubernetes/csi-rbdplugin.yaml index f0872e886..e68681f72 100644 --- a/deploy/rbd/kubernetes/csi-rbdplugin.yaml +++ b/deploy/rbd/kubernetes/csi-rbdplugin.yaml @@ -13,6 +13,9 @@ spec: spec: serviceAccount: csi-nodeplugin hostNetwork: true + # to use e.g. Rook orchestrated cluster, and mons' FQDN is + # resolved through k8s service, set dns policy to cluster first + dnsPolicy: ClusterFirstWithHostNet containers: - name: driver-registrar image: quay.io/k8scsi/driver-registrar:v0.3.0 diff --git a/examples/cephfs/storageclass.yaml b/examples/cephfs/storageclass.yaml index 3dd84da06..1ed336c22 100644 --- a/examples/cephfs/storageclass.yaml +++ b/examples/cephfs/storageclass.yaml @@ -5,6 +5,7 @@ metadata: provisioner: csi-cephfsplugin parameters: # Comma separated list of Ceph monitors + # if using FQDN, make sure csi plugin's dns policy is appropriate. monitors: mon1:port,mon2:port,... # For provisionVolume: "true": diff --git a/examples/rbd/storageclass.yaml b/examples/rbd/storageclass.yaml index 7535e2e01..536b07095 100644 --- a/examples/rbd/storageclass.yaml +++ b/examples/rbd/storageclass.yaml @@ -5,6 +5,7 @@ metadata: provisioner: csi-rbdplugin parameters: # Comma separated list of Ceph monitors + # if using FQDN, make sure csi plugin's dns policy is appropriate. monitors: mon1:port,mon2:port,... # Ceph pool into which the RBD image shall be created