5.2.2. 기본 스토리지 위치
주석 storagelocation.metering.openshift.io/is-default
가 있으며 StorageLocation
리소스에서 true
로 설정된 경우 해당 리소스는 기본 스토리지 리소스가 됩니다. 스토리지 위치가 지정되지 않은 스토리지 설정 옵션이 있는 모든 구성 요소에서는 기본 스토리지 리소스를 사용합니다. 하나의 기본 스토리지 리소스만 있을 수 있습니다. 주석이 있는 리소스가 여러 개 있으면 Reporting Operato가 기본값을 확인할 수 없기 때문에 오류가 기록됩니다.
기본 스토리지 예
apiVersion: metering.openshift.io/v1 kind: StorageLocation metadata: name: example-s3-storage labels: operator-metering: "true" annotations: storagelocation.metering.openshift.io/is-default: "true" spec: hive: databaseName: example_s3_storage unmanagedDatabase: false location: "s3a://bucket-name/path/within/bucket"