diff --git a/deploy/rbd/kubernetes/csi-nodeplugin-rbac.yaml b/deploy/rbd/kubernetes/csi-nodeplugin-rbac.yaml index ad8deb740..98ffbcaf8 100644 --- a/deploy/rbd/kubernetes/csi-nodeplugin-rbac.yaml +++ b/deploy/rbd/kubernetes/csi-nodeplugin-rbac.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: ServiceAccount metadata: name: rbd-csi-nodeplugin + # replace with non-default namespace name + namespace: default --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 @@ -36,6 +38,7 @@ metadata: subjects: - kind: ServiceAccount name: rbd-csi-nodeplugin + # replace with non-default namespace name namespace: default roleRef: kind: ClusterRole diff --git a/deploy/rbd/kubernetes/csi-provisioner-rbac.yaml b/deploy/rbd/kubernetes/csi-provisioner-rbac.yaml index e315cdcd3..32b8973f7 100644 --- a/deploy/rbd/kubernetes/csi-provisioner-rbac.yaml +++ b/deploy/rbd/kubernetes/csi-provisioner-rbac.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: ServiceAccount metadata: name: rbd-csi-provisioner + # replace with non-default namespace name + namespace: default --- kind: ClusterRole @@ -66,6 +68,7 @@ metadata: subjects: - kind: ServiceAccount name: rbd-csi-provisioner + # replace with non-default namespace name namespace: default roleRef: kind: ClusterRole diff --git a/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml b/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml index 5a8b0bdd7..be93dc6ea 100644 --- a/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml +++ b/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml @@ -3,6 +3,8 @@ kind: Service apiVersion: v1 metadata: name: csi-rbdplugin-provisioner + # replace with non-default namespace name + namespace: default labels: app: csi-metrics spec: @@ -19,6 +21,8 @@ kind: Deployment apiVersion: apps/v1 metadata: name: csi-rbdplugin-provisioner + # replace with non-default namespace name + namespace: default spec: replicas: 3 selector: @@ -135,10 +139,10 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName - # - name: POD_NAMESPACE - # valueFrom: - # fieldRef: - # fieldPath: spec.namespace + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace # - name: KMS_CONFIGMAP_NAME # value: encryptionConfig - name: CSI_ENDPOINT diff --git a/deploy/rbd/kubernetes/csi-rbdplugin.yaml b/deploy/rbd/kubernetes/csi-rbdplugin.yaml index 07b9969ae..0005dfb82 100644 --- a/deploy/rbd/kubernetes/csi-rbdplugin.yaml +++ b/deploy/rbd/kubernetes/csi-rbdplugin.yaml @@ -3,6 +3,8 @@ kind: DaemonSet apiVersion: apps/v1 metadata: name: csi-rbdplugin + # replace with non-default namespace name + namespace: default spec: selector: matchLabels: @@ -73,10 +75,10 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName - # - name: POD_NAMESPACE - # valueFrom: - # fieldRef: - # fieldPath: spec.namespace + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace # - name: KMS_CONFIGMAP_NAME # value: encryptionConfig - name: CSI_ENDPOINT @@ -173,6 +175,8 @@ apiVersion: v1 kind: Service metadata: name: csi-metrics-rbdplugin + # replace with non-default namespace name + namespace: default labels: app: csi-metrics spec: