我有一個簡單的 Spring 啟動應用程式,它使用帳戶密鑰連接到 Azure 存盤帳戶并檢查 blob 是否存在。存盤帳戶受“網路”選項卡中的“選定網路”保護。
將我的本地客戶端 IP 添加到存盤帳戶的防火墻白名單后,該應用程式在我的本地作業正常。
在 Azure Kubernetes 服務中部署此 Spring Boot 應用程式blob.exists()后,即使在存盤帳戶的防火墻中將 Kubernetes 服務 IP 列入白名單后,我仍然在處收到以下例外。
com.microsoft.azure.storage.StorageException: This request is not authorized to perform this operation.
at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:87)
at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:305)
at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:196)
at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:2073)
at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:2060)
at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:2035)
我通過
現在,您將能夠從 Spring Boot 應用程式連接到存盤帳戶
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/359000.html
標籤:天蓝色 Kubernetes azure-aks azure-storage-account 阿克斯
上一篇:ibmcloudksclusterget--clusterCLUSTER_NAME的kubectl等價物是什么?
