To use S3-compatible storage such as Noobaa, edit the spec.storage
section in the example s3-compatible-storage.yaml
file below.
apiVersion: metering.openshift.io/v1
kind: MeteringConfig
metadata:
name: "operator-metering"
spec:
storage:
type: "hive"
hive:
type: "s3Compatible"
s3Compatible:
bucket: "bucketname" (1)
endpoint: "http://example:port-number" (2)
secretName: "my-aws-secret" (3)
-
Specify the name of your S3-compatible bucket.
-
Specify the endpoint for your storage.
-
The name of a secret in the metering namespace containing the AWS credentials in the
data.aws-access-key-id
anddata.aws-secret-access-key
fields. See the example that follows for more details.
Use the example secret below as a template.
apiVersion: v1
kind: Secret
metadata:
name: your-aws-secret
data:
aws-access-key-id: "dGVzdAo="
aws-secret-access-key: "c2VjcmV0Cg=="