Merge pull request #77 from rootfs/rbd-nbd

set dns policy in csi plugin so storage class can use mons' FQDN
This commit is contained in:
Huamin Chen 2018-09-19 11:18:39 -04:00 committed by GitHub
commit 6e61a8449b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,9 @@ spec:
spec: spec:
serviceAccount: csi-nodeplugin serviceAccount: csi-nodeplugin
hostNetwork: true 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: containers:
- name: driver-registrar - name: driver-registrar
image: quay.io/k8scsi/driver-registrar:v0.3.0 image: quay.io/k8scsi/driver-registrar:v0.3.0

View File

@ -13,6 +13,9 @@ spec:
spec: spec:
serviceAccount: csi-nodeplugin serviceAccount: csi-nodeplugin
hostNetwork: true 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: containers:
- name: driver-registrar - name: driver-registrar
image: quay.io/k8scsi/driver-registrar:v0.3.0 image: quay.io/k8scsi/driver-registrar:v0.3.0

View File

@ -5,6 +5,7 @@ metadata:
provisioner: csi-cephfsplugin provisioner: csi-cephfsplugin
parameters: parameters:
# Comma separated list of Ceph monitors # Comma separated list of Ceph monitors
# if using FQDN, make sure csi plugin's dns policy is appropriate.
monitors: mon1:port,mon2:port,... monitors: mon1:port,mon2:port,...
# For provisionVolume: "true": # For provisionVolume: "true":

View File

@ -5,6 +5,7 @@ metadata:
provisioner: csi-rbdplugin provisioner: csi-rbdplugin
parameters: parameters:
# Comma separated list of Ceph monitors # Comma separated list of Ceph monitors
# if using FQDN, make sure csi plugin's dns policy is appropriate.
monitors: mon1:port,mon2:port,... monitors: mon1:port,mon2:port,...
# Ceph pool into which the RBD image shall be created # Ceph pool into which the RBD image shall be created