dyrnq / kubeadm-vagrant

Run kubernetes cluster with kubeadm on vagrant.
1 stars 5 forks source link

Pending pod has unbound immediate PersistentVolumeClaims. #41

Closed dyrnq closed 2 years ago

dyrnq commented 2 years ago
Volumes:
  alertmanager-release-kube-prometheus-st-alertmanager-db:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  alertmanager-release-kube-prometheus-st-alertmanager-db-alertmanager-release-kube-prometheus-st-alertmanager-0
    ReadOnly:   false
  config-volume:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  alertmanager-release-kube-prometheus-st-alertmanager-generated
    Optional:    false
  tls-assets:
    Type:                Projected (a volume that contains injected data from multiple sources)
    SecretName:          alertmanager-release-kube-prometheus-st-alertmanager-tls-assets-0
    SecretOptionalName:  <nil>
  kube-api-access-d9k5x:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason            Age                   From               Message
  ----     ------            ----                  ----               -------
  Warning  FailedScheduling  3m48s                 default-scheduler  0/13 nodes are available: 13 pod has unbound immediate PersistentVolumeClaims.
  Warning  FailedScheduling  104s (x1 over 2m44s)  default-scheduler  0/13 nodes are available: 13 pod has unbound immediate PersistentVolumeClaims.
dyrnq commented 2 years ago
kubectl describe persistentvolumeclaim alertmanager-release-kube-prometheus-st-alertmanager-db-alertmanager-release-kube-prometheus-st-alertmanager-0 -n monitoring
Name:          alertmanager-release-kube-prometheus-st-alertmanager-db-alertmanager-release-kube-prometheus-st-alertmanager-0
Namespace:     monitoring
StorageClass:  nfs-client
Status:        Pending
Volume:        
Labels:        alertmanager=release-kube-prometheus-st-alertmanager
               app.kubernetes.io/instance=release-kube-prometheus-st-alertmanager
               app.kubernetes.io/managed-by=prometheus-operator
               app.kubernetes.io/name=alertmanager
Annotations:   volume.beta.kubernetes.io/storage-provisioner: cluster.local/my-release-nfs-subdir-external-provisioner
               volume.kubernetes.io/storage-provisioner: cluster.local/my-release-nfs-subdir-external-provisioner
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Used By:       alertmanager-release-kube-prometheus-st-alertmanager-0
Events:
  Type     Reason                Age                   From                                                                                                                                                       Message
  ----     ------                ----                  ----                                                                                                                                                       -------
  Normal   ExternalProvisioning  21s (x463 over 115m)  persistentvolume-controller                                                                                                                                waiting for a volume to be created, either by external provisioner "cluster.local/my-release-nfs-subdir-external-provisioner" or manually created by system administrator
  Normal   Provisioning          21s (x13 over 115m)   cluster.local/my-release-nfs-subdir-external-provisioner_my-release-nfs-subdir-external-provisioner-79887c6d67-6vscw_f58db5e6-7535-4051-9235-30e3f3dbb3fd  External provisioner is provisioning volume for claim "monitoring/alertmanager-release-kube-prometheus-st-alertmanager-db-alertmanager-release-kube-prometheus-st-alertmanager-0"
  Warning  ProvisioningFailed    21s (x13 over 115m)   cluster.local/my-release-nfs-subdir-external-provisioner_my-release-nfs-subdir-external-provisioner-79887c6d67-6vscw_f58db5e6-7535-4051-9235-30e3f3dbb3fd  failed to provision volume with StorageClass "nfs-client": claim Selector is not supported
dyrnq commented 2 years ago

remove selector: {}