Home > OS >  Kubernetes on GCP - Getting message "Does not have minimum availability"
Kubernetes on GCP - Getting message "Does not have minimum availability"

Time:05-11

I deployed the images of microservices currency-conversion and currency-exchange on Google cloud but in the Kubernetes Engine, I see that the pods/replica sets are not available.

When I check under Workload tab, I see that the service shows a message "Does not have minimum availability"

enter image description here

enter image description here

I added additional availability zone to increase the resources but that did not help.

How do I fix this ?

CodePudding user response:

The pod is crashing hence why you're getting "Does not mean minimum availability"

You should look at the logs of the container first and see why its crashing

kubectl logs -n default {name of pod}

CodePudding user response:

Many reasons could be there behind failure:

  • Low Resources so POD are not starting or pending
  • Liveness or Readiness failing for PODs
  • Configmap or secret which POD require to start is not available

You can describe the POD or check the logs of POD to debug more issue

kubectl describe pod <POD name> -n <Namespace name>
  • Related