kubevela / catalog

Catalog of community maintained components and traits.
Apache License 2.0
154 stars 145 forks source link

[Addon] Not all default storagecalss match the requirement of prometheus server #204

Closed zzxwill closed 2 years ago

zzxwill commented 2 years ago
➜  crds git:(master) ✗ k get storageclass
NAME                                PROVISIONER                       RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
alicloud-disk-available (default)   diskplugin.csi.alibabacloud.com   Delete          Immediate              true                   154m
alicloud-disk-efficiency            diskplugin.csi.alibabacloud.com   Delete          Immediate              true                   154m
alicloud-disk-essd                  diskplugin.csi.alibabacloud.com   Delete          Immediate              true                   154m
alicloud-disk-ssd                   diskplugin.csi.alibabacloud.com   Delete          Immediate              true                   154m
alicloud-disk-topology              diskplugin.csi.alibabacloud.com   Delete          WaitForFirstConsumer   true                   154m
➜  crds git:(master) ✗ k describe pod -n vela-system  prometheus-server-56c7c89d4f-bj9hd
Name:           prometheus-server-56c7c89d4f-bj9hd
Namespace:      vela-system
Priority:       0
Node:           cn-beijing.192.168.0.131/192.168.0.131
Start Time:     Thu, 23 Dec 2021 01:05:38 +0800
Labels:         app=prometheus
                chart=prometheus-14.4.1
                component=server
                heritage=Helm
                pod-template-hash=56c7c89d4f
                release=prometheus
Annotations:    kubernetes.io/psp: ack.privileged
Status:         Pending
IP:
IPs:            <none>
Controlled By:  ReplicaSet/prometheus-server-56c7c89d4f
Containers:
  prometheus-server-configmap-reload:
    Container ID:
    Image:         jimmidyson/configmap-reload:v0.5.0
    Image ID:
    Port:          <none>
    Host Port:     <none>
    Args:
      --volume-dir=/etc/config
      --webhook-url=http://127.0.0.1:9090/-/reload
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /etc/config from config-volume (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from prometheus-server-token-wj2d7 (ro)
  prometheus-server:
    Container ID:
    Image:         prom/prometheus:v2.26.0
    Image ID:
    Port:          9090/TCP
    Host Port:     0/TCP
    Args:
      --storage.tsdb.retention.time=15d
      --config.file=/etc/config/prometheus.yml
      --storage.tsdb.path=/data
      --web.console.libraries=/etc/prometheus/console_libraries
      --web.console.templates=/etc/prometheus/consoles
      --web.enable-lifecycle
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Liveness:       http-get http://:9090/-/healthy delay=30s timeout=10s period=15s #success=1 #failure=3
    Readiness:      http-get http://:9090/-/ready delay=30s timeout=4s period=5s #success=1 #failure=3
    Environment:    <none>
    Mounts:
      /data from storage-volume (rw)
      /etc/config from config-volume (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from prometheus-server-token-wj2d7 (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  config-volume:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      prometheus-server
    Optional:  false
  storage-volume:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  prometheus-server
    ReadOnly:   false
  prometheus-server-token-wj2d7:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  prometheus-server-token-wj2d7
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type     Reason                  Age        From                               Message
  ----     ------                  ----       ----                               -------
  Warning  FailedScheduling        <unknown>                                     0/6 nodes are available: 6 pod has unbound immediate PersistentVolumeClaims.
  Warning  FailedScheduling        <unknown>                                     0/6 nodes are available: 6 pod has unbound immediate PersistentVolumeClaims.
  Normal   Scheduled               <unknown>                                     Successfully assigned vela-system/prometheus-server-56c7c89d4f-bj9hd to cn-beijing.192.168.0.131
  Normal   SuccessfulAttachVolume  3m23s      attachdetach-controller            AttachVolume.Attach succeeded for volume "d-2zegrsafadin8hyrbiwd"
  Warning  FailedMount             3m19s      kubelet, cn-beijing.192.168.0.131  MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: 69E5B2D9-8C60-5CFA-8202-C6A50D166015
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
  Warning  FailedMount  3m18s  kubelet, cn-beijing.192.168.0.131  MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: 9E8BD8C1-B99A-576C-B8DE-18CF71C045CF
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
  Warning  FailedMount  3m17s  kubelet, cn-beijing.192.168.0.131  MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: 95306460-F4C4-5C56-A2B4-6B81A821A110
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
  Warning  FailedMount  3m14s  kubelet, cn-beijing.192.168.0.131  MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: A749136A-4341-5A5C-8165-AD4CE005F5D9
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
  Warning  FailedMount  3m10s  kubelet, cn-beijing.192.168.0.131  MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: 4B8E8CFD-3D35-5432-AB3F-F559DC70E016
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
  Warning  FailedMount  3m2s  kubelet, cn-beijing.192.168.0.131  MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: E66F800C-E487-5AB0-AB65-A56D2A3F8687
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
  Warning  FailedMount  2m45s  kubelet, cn-beijing.192.168.0.131  MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: 567756E1-BCCF-55F1-8BA8-C23ACFE78062
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
  Warning  FailedMount  2m13s  kubelet, cn-beijing.192.168.0.131  MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: D4DFF8A4-3A49-5A4E-AEE5-07511C9D420B
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
  Warning  FailedMount  80s  kubelet, cn-beijing.192.168.0.131  Unable to attach or mount volumes: unmounted volumes=[storage-volume], unattached volumes=[config-volume prometheus-server-token-wj2d7 storage-volume]: timed out waiting for the condition
  Warning  FailedMount  69s  kubelet, cn-beijing.192.168.0.131  (combined from similar events): MountVolume.MountDevice failed for volume "d-2zegrsafadin8hyrbiwd" : rpc error: code = Internal desc = SDK.ServerError
ErrorCode: InvalidInstanceType.NotSupportDiskCategory
Recommend: https://error-center.aliyun.com/status/search?Keyword=InvalidInstanceType.NotSupportDiskCategory&source=PopGw
RequestId: 5F892E8D-14F1-5FB4-A541-1C9ECDB4C72B
Message: The instanceType of the specified instance does not support this disk category., Disk(d-2zegrsafadin8hyrbiwd) is not supported by instance, please refer to: https://help.aliyun.com/document_detail/25378.html
zzxwill commented 2 years ago

The node created from Generation 7 ECS won't work. The ACK team is working on this.