张家界旅游网站官网,网站开发前端好还是后端好,单位建设的网站属于无形资产吗,专门做房地产设计的图片网站错误场景: 因为阿里云没有默认的 StorageClass 我也懒得更新#xff0c;所以就创建了一个类型是云盘的 StorageClass。 但是在创建 PVC 之后发现一直是 Pending 状态就查询了一下日志#xff0c;然后看到很多下面这种错误
liuduiMacBookM1Pro ~ % kubectl describe pvc graf…错误场景: 因为阿里云没有默认的 StorageClass 我也懒得更新所以就创建了一个类型是云盘的 StorageClass。 但是在创建 PVC 之后发现一直是 Pending 状态就查询了一下日志然后看到很多下面这种错误
liuduiMacBookM1Pro ~ % kubectl describe pvc grafana-pvc
Error from server (NotFound): persistentvolumeclaims grafana-pvc not found
liuduiMacBookM1Pro ~ % kubectl describe pvc grafana-pvc -n grafana-view
Name: grafana-pvc
Namespace: grafana-view
StorageClass: grafana
Status: Pending
Volume:
Labels: none
Annotations: volume.beta.kubernetes.io/storage-provisioner: diskplugin.csi.alibabacloud.com
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Used By: grafana-566494879c-6drdf
Events:Type Reason Age From Message---- ------ ---- ---- -------Warning ProvisioningFailed 35s diskplugin.csi.alibabacloud.com_csi-provisioner-5bfd5f4bb-l2m2j_fda93bfc-107f-4a5f-8596-ca3d15846878 failed to provision volume with StorageClass grafana: rpc error: code Internal desc SDK.ServerError
ErrorCode: InvalidParameter
Recommend: https://api.aliyun.com/troubleshoot?qInvalidParameterproductEcs
RequestId: 50A269B4-2ACA-572D-B1A5-84D91ACDE77F
Message: The specified parameter Size is not valid.Warning ProvisioningFailed 35s diskplugin.csi.alibabacloud.com_csi-provisioner-5bfd5f4bb-l2m2j_fda93bfc-107f-4a5f-8596-ca3d15846878 failed to provision volume with StorageClass grafana: rpc error: code Internal desc SDK.ServerError
ErrorCode: InvalidParameter
Recommend: https://api.aliyun.com/troubleshoot?qInvalidParameterproductEcs
RequestId: B6BD668D-C7EF-5BED-8E58-301A464B5D05
Message: The specified parameter Size is not valid.Warning ProvisioningFailed 33s diskplugin.csi.alibabacloud.com_csi-provisioner-5bfd5f4bb-l2m2j_fda93bfc-107f-4a5f-8596-ca3d15846878 failed to provision volume with StorageClass grafana: rpc error: code Internal desc SDK.ServerError使用的配置
apiVersion: v1
kind: PersistentVolumeClaim
metadata:name: grafana-pvc
spec:accessModes:- ReadWriteOnceresources:requests:storage: 1GistorageClassName: grafana原因: 根据阿里云 FAQ 文档 发现在 PVC 中指定的云盘大小不符合规范不同类型云盘有最小容量的限制例如高效云盘和 SSD 云盘要求最小 20GiB。 然后我的 PVC 申领的是 1GB 所以就导致了创建 PV 失败。 修复办法二选一
PVC storage 设置为最小 20 GiB更换其他 StorageClass 类型
liuduiMacBookM1Pro ~ % kubectl get pv -n grafana-view | grep grafana-pvc
d-bp1bgvzk7l5lkz3q1pr8 30Gi RWO Delete Bound grafana-view/grafana-pvc grafana 16m
liuduiMacBookM1Pro ~ % kubectl get pvc -n grafana-view
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
grafana-pvc Bound d-bp1bgvzk7l5lkz3q1pr8 30Gi RWO grafana 16m更新之后成功。