This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.4.3.4. 将数据存储至 Google Cloud Storage 中
要将数据存储至 Google Cloud Storage 中,您必须使用现有的存储桶。
流程
编辑
gcs-storage.yaml
文件中的spec.storage
部分:gcs-storage.yaml
文件示例Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用以下
Secret
对象作为模板:Google Cloud Storage
Secret
对象示例Copy to Clipboard Copied! Toggle word wrap Toggle overflow 创建 secret:
oc create secret -n openshift-metering generic my-gcs-secret \ --from-file gcs-service-account.json=/path/to/my/service-account-key.json
$ oc create secret -n openshift-metering generic my-gcs-secret \ --from-file gcs-service-account.json=/path/to/my/service-account-key.json
Copy to Clipboard Copied! Toggle word wrap Toggle overflow