Skip to content

Commit

Permalink
Add ACM metrics 2ti object bucket claim & storage
Browse files Browse the repository at this point in the history
fixes partly nerc-project/operations#745

This PR tackles part of the issue by adding acm-metrics-2ti and updating existing observability and storage settings.
The changes try to solve or reproduce the errors in #745.
But this is only the first step, see #745.

Signed-off-by: ​/Thor(sten)?/ Schwesig <[email protected]>
  • Loading branch information
schwesig committed Sep 23, 2024
1 parent 3634b66 commit 6bbc817
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- objectbucketclaim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim
metadata:
name: acm-metrics-2ti
namespace: open-cluster-management-observability
spec:
generateBucketName: acm-metrics-2ti
storageClassName: acm-metrics-2ti-bucket-storage
1 change: 1 addition & 0 deletions cluster-scope/bundles/acm-observability/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
- ../../base/core/namespaces/open-cluster-management-observability
- ../../base/objectbucket.io/objectbucketclaims/observability
- ../../base/objectbucket.io/objectbucketclaims/acm-metrics
- ../../base/objectbucket.io/objectbucketclaims/acm-metrics-2ti
- ../../base/external-secrets.io/externalsecrets/open-cluster-management-observability-acm-metrics-object-storage
- ../../base/external-secrets.io/externalsecrets/open-cluster-management-observability-thanos-object-storage
- ../../base/external-secrets.io/externalsecrets/open-cluster-management-observability-multiclusterhub-operator-pull-secret
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: noobaa.io/v1alpha1
kind: BackingStore
metadata:
name: acm-metrics-backing-store
namespace: openshift-storage
spec:
pvPool:
numVolumes: 2
resources:
requests:
storage: 1Ti
storageClass: ocs-external-storagecluster-ceph-rbd
type: pv-pool
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: noobaa.io/v1alpha1
kind: BucketClass
metadata:
name: acm-metrics-2ti-bucket-class
namespace: openshift-storage
spec:
placementPolicy:
tiers:
- backingStores:
- acm-metrics-2ti-backing-store
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app: noobaa
resources:
- backingstore.yaml
- bucketclass.yaml
- storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
description: Provides Object Bucket Claims (OBCs) for ACM metrics
name: acm-metrics-2ti-bucket-storage
parameters:
bucketclass: acm-metrics-2ti-bucket-class
provisioner: openshift-storage.noobaa.io/obc
reclaimPolicy: Delete
volumeBindingMode: Immediate
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 @@ -32,7 +32,7 @@ resources:
- persistentvolumeclaims
- nerc-logs-metrics-open-cluster-management-cluster-manager-admin.yaml
- acm-metrics-storage

- acm-metrics-2ti-storage
components:
- ../../components/nerc-oauth-github

Expand Down

0 comments on commit 6bbc817

Please sign in to comment.