Skip to content

Commit

Permalink
Configure ODF for NESE storage
Browse files Browse the repository at this point in the history
Configure ODF to use NESE as an external storage cluster.
  • Loading branch information
larsks committed Jul 1, 2022
1 parent 6c82961 commit 6a157af
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ apiVersion: v1
kind: Namespace
metadata:
name: openshift-storage
labels:
openshift.io/cluster-monitoring: "true"
spec: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ocsinitialization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: ocs.openshift.io/v1
kind: OCSInitialization
metadata:
name: ocsinit
namespace: openshift-storage
spec:
enableCephTools: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: openshift-storage
resources:
- storagecluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: ocs.openshift.io/v1
kind: StorageCluster
metadata:
name: ocs-external-storagecluster
spec:
externalStorage:
enable: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: openshift-storage
resources:
- storagesystem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: odf.openshift.io/v1alpha1
kind: StorageSystem
metadata:
name: ocs-external-storagecluster-storagesystem
spec:
kind: storagecluster.ocs.openshift.io/v1
name: ocs-external-storagecluster
namespace: openshift-storage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
description: Provides RWO Filesystem volumes, and RWO and RWX Block volumes
storageclass.kubernetes.io/is-default-class: "true"
name: ocs-external-storagecluster-ceph-rbd
parameters: {}
provisioner: openshift-storage.rbd.csi.ceph.com
reclaimPolicy: Delete
volumeBindingMode: Immediate
7 changes: 7 additions & 0 deletions cluster-scope/bundles/odf-external/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../odf
- ../../base/odf.openshift.io/storagesystems/ocs-external-storagecluster-storagesystem
- ../../base/odf.openshift.io/storageclusters/ocs-external-storagecluster
- ../../base/storage.k8s.io/storageclasses/ocs-external-storagecluster-ceph-rbd
1 change: 1 addition & 0 deletions cluster-scope/bundles/odf/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ resources:
- ../../base/core/namespaces/openshift-storage
- ../../base/operators.coreos.com/operatorgroups/openshift-storage
- ../../base/operators.coreos.com/subscriptions/odf-operator
- ../../base/ocs.openshift.io/ocsinitializations/ocsinit
2 changes: 1 addition & 1 deletion cluster-scope/overlays/nerc-ocp-infra/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ resources:
- ../common
- ../../bundles/openshift-gitops
- ../../bundles/acm
- ../../bundles/odf
- ../../base/operator.openshift.io/networks/cluster
- ../../bundles/odf-external
- clusterversion.yaml
- machineconfigs/disable-net-ifnames.yaml
- machineconfigs/mellanox-udev-rules
Expand Down

0 comments on commit 6a157af

Please sign in to comment.