4.3.2. S3 互換ストレージへのデータの保存
Noobaa などの S3 互換ストレージを使用するには、以下のサンプルの s3-compatible-storage.yaml ファイルの spec.storage セクションを編集します。
apiVersion: metering.openshift.io/v1
kind: MeteringConfig
metadata:
name: "operator-metering"
spec:
storage:
type: "hive"
hive:
type: "s3Compatible"
s3Compatible:
bucket: "bucketname"
endpoint: "http://example:port-number"
secretName: "my-aws-secret"
テンプレートとして以下のシークレットサンプルを使用します。
apiVersion: v1
kind: Secret
metadata:
name: your-aws-secret
data:
aws-access-key-id: "dGVzdAo="
aws-secret-access-key: "c2VjcmV0Cg=="