mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
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:
parent
c9cd8d7a37
commit
af1f50ba04
@ -3,6 +3,8 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: rbd-csi-nodeplugin
|
name: rbd-csi-nodeplugin
|
||||||
|
# replace with non-default namespace name
|
||||||
|
namespace: default
|
||||||
---
|
---
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
@ -36,6 +38,7 @@ metadata:
|
|||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rbd-csi-nodeplugin
|
name: rbd-csi-nodeplugin
|
||||||
|
# replace with non-default namespace name
|
||||||
namespace: default
|
namespace: default
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
@ -3,6 +3,8 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: rbd-csi-provisioner
|
name: rbd-csi-provisioner
|
||||||
|
# replace with non-default namespace name
|
||||||
|
namespace: default
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
@ -66,6 +68,7 @@ metadata:
|
|||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rbd-csi-provisioner
|
name: rbd-csi-provisioner
|
||||||
|
# replace with non-default namespace name
|
||||||
namespace: default
|
namespace: default
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
@ -3,6 +3,8 @@ kind: Service
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: csi-rbdplugin-provisioner
|
name: csi-rbdplugin-provisioner
|
||||||
|
# replace with non-default namespace name
|
||||||
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: csi-metrics
|
app: csi-metrics
|
||||||
spec:
|
spec:
|
||||||
@ -19,6 +21,8 @@ kind: Deployment
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: csi-rbdplugin-provisioner
|
name: csi-rbdplugin-provisioner
|
||||||
|
# replace with non-default namespace name
|
||||||
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
@ -135,10 +139,10 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: spec.nodeName
|
fieldPath: spec.nodeName
|
||||||
# - name: POD_NAMESPACE
|
- name: POD_NAMESPACE
|
||||||
# valueFrom:
|
valueFrom:
|
||||||
# fieldRef:
|
fieldRef:
|
||||||
# fieldPath: spec.namespace
|
fieldPath: metadata.namespace
|
||||||
# - name: KMS_CONFIGMAP_NAME
|
# - name: KMS_CONFIGMAP_NAME
|
||||||
# value: encryptionConfig
|
# value: encryptionConfig
|
||||||
- name: CSI_ENDPOINT
|
- name: CSI_ENDPOINT
|
||||||
|
@ -3,6 +3,8 @@ kind: DaemonSet
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: csi-rbdplugin
|
name: csi-rbdplugin
|
||||||
|
# replace with non-default namespace name
|
||||||
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
@ -73,10 +75,10 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: spec.nodeName
|
fieldPath: spec.nodeName
|
||||||
# - name: POD_NAMESPACE
|
- name: POD_NAMESPACE
|
||||||
# valueFrom:
|
valueFrom:
|
||||||
# fieldRef:
|
fieldRef:
|
||||||
# fieldPath: spec.namespace
|
fieldPath: metadata.namespace
|
||||||
# - name: KMS_CONFIGMAP_NAME
|
# - name: KMS_CONFIGMAP_NAME
|
||||||
# value: encryptionConfig
|
# value: encryptionConfig
|
||||||
- name: CSI_ENDPOINT
|
- name: CSI_ENDPOINT
|
||||||
@ -173,6 +175,8 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: csi-metrics-rbdplugin
|
name: csi-metrics-rbdplugin
|
||||||
|
# replace with non-default namespace name
|
||||||
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: csi-metrics
|
app: csi-metrics
|
||||||
spec:
|
spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user