為何在建立 PVC 時看到錯誤的認證或拒絕存取訊息?
針對 Cloud Object Storage 中持續性卷聲明失敗的問題進行疑難排解。
虛擬私有雲 傳統基礎設施
此疑難排解主題僅適用於執行版本 3.11 的 Red Hat OpenShift 叢集。
當您建立 PVC 時,會看到與下列其中一則類似的錯誤訊息:
SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. For more information, see REST Authentication and SOAP Authentication for details.
AccessDenied: Access Denied status code: 403
CredentialsEndpointError: failed to load credentials
InvalidAccessKeyId: The AWS Access Key ID you provided does not exist in our records`
can't access bucket <bucket_name>: Forbidden: Forbidden
您用來存取服務實例的 IBM Cloud Object Storage 服務認證可能錯誤,或只容許對儲存區進行讀取。
建立新密鑰。
- 在「服務詳細資料」頁面的導覽中,按一下服務認證。
- 尋找您的認證,然後按一下檢視認證。
- 在
iam_role_crn區段中,請確認您擁有「Writer」或「Manager」角色。 若您沒有正確的角色,則必須建立具有正確權限的新「IBM Cloud Object Storage」服務憑證。 - 如果角色設定正確,請確認您使用的是正確的
access_key_id以及 **secret_access_key**Kubernetes 是否正確。 - 請使用已更新的
access_key_id和secret_access_key建立一個新的密鑰。