charmed-lma / charm-k8s-prometheus

Kubernetes Operator for Prometheus
Apache License 2.0
4 stars 2 forks source link

Charm is stuck forever in "Pod is getting ready" even if pod creation has failed #26

Open exceptorr opened 4 years ago

exceptorr commented 4 years ago
Model  Controller  Cloud/Region        Version  SLA          Timestamp
lma5   mk8s        microk8s/localhost  2.7.7    unsupported  13:02:38Z

App         Version  Status   Scale  Charm       Store  Rev  OS          Address        Notes
prometheus           waiting      1  prometheus  local    0  kubernetes  10.152.183.41

Unit           Workload     Agent  Address     Ports           Message
prometheus/0*  maintenance  idle   10.1.50.17  80/TCP,443/TCP  Pod is getting ready
ubuntu@node10:~$ microk8s.kubectl get all -n lma5
NAME                        READY   STATUS             RESTARTS   AGE
pod/prometheus-0            1/2     CrashLoopBackOff   5          4m58s
pod/prometheus-operator-0   1/1     Running            0          5m7s

NAME                           TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
service/prometheus             ClusterIP   10.152.183.41   <none>        80/TCP,443/TCP   4m58s
service/prometheus-endpoints   ClusterIP   None            <none>        <none>           4m58s
service/prometheus-operator    ClusterIP   10.152.183.29   <none>        30666/TCP        5m7s

NAME                                   READY   AGE
statefulset.apps/prometheus            0/1     4m58s
statefulset.apps/prometheus-operator   1/1     5m7s