1

Using microk8s installation. After an image is pulled it takes addional tens of minutes to create a container:

light@siddhalok:~/camera_serv$ k describe pod lh-graphql-6db75544cf-j65wp
Name:             lh-graphql-6db75544cf-j65wp
Namespace:        default
Priority:         0
Service Account:  default
Node:             siddhalok/10.0.2.15
Start Time:       Wed, 01 Feb 2023 05:45:13 +0000
Labels:           app=lh-graphql
                  pod-template-hash=6db75544cf
Annotations:      cni.projectcalico.org/containerID: 1a6c41da95677512e3206b51ca15e7cdbe5784abe4599cba7e6fc1ec4b3188f7
                  cni.projectcalico.org/podIP: 10.1.186.238/32
                  cni.projectcalico.org/podIPs: 10.1.186.238/32
Status:           Pending
IP:               
IPs:              <none>
Controlled By:    ReplicaSet/lh-graphql-6db75544cf
Containers:
  lh-graphql:
    Container ID:   
    Image:          hasura/graphql-engine:v2.13.2.cli-migrations-v3
    Image ID:       
    Port:           8080/TCP
    Host Port:      0/TCP
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Environment:
      HASURA_GRAPHQL_DATABASE_URL:  postgresql://postgres:postgres@$(ORCH_POSTGRES_IP):5432/lh
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-nd8c2 (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  kube-api-access-nd8c2:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:                      <none>

Note AGE is 46m :

light@siddhalok:~/camera_serv$ k get pods
NAME                           READY   STATUS              RESTARTS   AGE
lh-detector-6c4c696cbb-zrqcs   0/1     ContainerCreating   0          53m
lh-postgres-7697c87948-grbvd   1/1     Running             0          47m
lh-pgadmin-58db679494-kmcq2    1/1     Running             0          71m
lh-graphql-6db75544cf-j65wp    0/1     ContainerCreating   0          46m
light@siddhalok:~/camera_serv$ k logs lh-graphql-6db75544cf-j65wp
Error from server (BadRequest): container "lh-graphql" in pod "lh-graphql-6db75544cf-j65wp" is waiting to start: ContainerCreating

The system works fine otherwise:

light@siddhalok:~$ cat /proc/meminfo
MemTotal:        2988196 kB
MemFree:          175132 kB
MemAvailable:    1697564 kB
noname7619
  • 3,370
  • 3
  • 21
  • 26

0 Answers0