diff --git a/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml b/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml index 0d1222a16..04fcbb9ee 100644 --- a/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml +++ b/cluster/examples/kubernetes/ceph/csi/template/cephfs/csi-cephfsplugin.yaml @@ -2,7 +2,7 @@ kind: DaemonSet apiVersion: apps/v1 metadata: name: csi-cephfsplugin - namespace: {{ .Namespace }} + namespace: {{ .Namespace }} spec: selector: matchLabels: @@ -16,7 +16,7 @@ spec: 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 + dnsPolicy: ClusterFirstWithHostNet containers: - name: driver-registrar image: {{ .RegistrarImage }} @@ -27,7 +27,7 @@ spec: lifecycle: preStop: exec: - command: ["/bin/sh", "-c", "rm -rf /registration/csi-cephfsplugin /registration/csi-cephfsplugin-reg.sock"] + command: ["/bin/sh", "-c", "rm -rf /registration/csi-cephfsplugin /registration/csi-cephfsplugin-reg.sock"] env: - name: KUBE_NODE_NAME valueFrom: diff --git a/cluster/examples/kubernetes/ceph/csi/template/rbd/csi-rbdplugin-attacher.yaml b/cluster/examples/kubernetes/ceph/csi/template/rbd/csi-rbdplugin-attacher.yaml index 6446cad03..64145d4bc 100644 --- a/cluster/examples/kubernetes/ceph/csi/template/rbd/csi-rbdplugin-attacher.yaml +++ b/cluster/examples/kubernetes/ceph/csi/template/rbd/csi-rbdplugin-attacher.yaml @@ -2,13 +2,13 @@ kind: StatefulSet apiVersion: apps/v1 metadata: name: csi-rbdplugin-attacher - namespace: {{ .Namespace }} + namespace: {{ .Namespace }} spec: serviceName: csi-rbdplugin-attacher replicas: 1 selector: matchLabels: - app: csi-rbdplugin-attacher + app: csi-rbdplugin-attacher template: metadata: labels: diff --git a/cluster/examples/kubernetes/ceph/csi/template/rbd/csi-rbdplugin.yaml b/cluster/examples/kubernetes/ceph/csi/template/rbd/csi-rbdplugin.yaml index 4adb4b49e..99e1d963c 100644 --- a/cluster/examples/kubernetes/ceph/csi/template/rbd/csi-rbdplugin.yaml +++ b/cluster/examples/kubernetes/ceph/csi/template/rbd/csi-rbdplugin.yaml @@ -2,7 +2,7 @@ kind: DaemonSet apiVersion: apps/v1 metadata: name: csi-rbdplugin - namespace: {{ .Namespace }} + namespace: {{ .Namespace }} spec: selector: matchLabels: @@ -14,10 +14,10 @@ spec: spec: serviceAccount: rook-csi-rbd-plugin-sa hostNetwork: true - hostPID: true + hostPID: true # to use e.g. Rook orchestrated cluster, and mons' FQDN is # resolved through k8s service, set dns policy to cluster first - dnsPolicy: ClusterFirstWithHostNet + dnsPolicy: ClusterFirstWithHostNet containers: - name: driver-registrar image: {{ .RegistrarImage }} @@ -28,7 +28,7 @@ spec: lifecycle: preStop: exec: - command: ["/bin/sh", "-c", "rm -rf /registration/csi-rbdplugin /registration/csi-rbdplugin-reg.sock"] + command: ["/bin/sh", "-c", "rm -rf /registration/csi-rbdplugin /registration/csi-rbdplugin-reg.sock"] env: - name: KUBE_NODE_NAME valueFrom: @@ -55,7 +55,7 @@ spec: - "--metadatastorage=k8s_configmap" env: - name: HOST_ROOTFS - value: "/rootfs" + value: "/rootfs" - name: NODE_ID valueFrom: fieldRef: @@ -79,7 +79,7 @@ spec: - mountPath: /dev name: host-dev - mountPath: /rootfs - name: host-rootfs + name: host-rootfs - mountPath: /sys name: host-sys - mountPath: /lib/modules @@ -91,7 +91,7 @@ spec: path: /var/lib/kubelet/plugins/rbd.csi.ceph.com type: DirectoryOrCreate - name: plugin-mount-dir - hostPath: + hostPath: path: /var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices/ type: DirectoryOrCreate - name: registration-dir @@ -107,7 +107,7 @@ spec: path: /dev - name: host-rootfs hostPath: - path: / + path: / - name: host-sys hostPath: path: /sys