deploy: rbd kubernetes manifests

add ability to deploy ceph-csi-rbd on non-default namespace

Signed-off-by: rtsp <git@rtsp.us>
This commit is contained in:
rtsp
2021-07-31 00:15:34 +07:00
committed by mergify[bot]
parent c9cd8d7a37
commit af1f50ba04
4 changed files with 22 additions and 8 deletions

View File

@ -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: