Kubernetes init container hanging (Init container is running but not ready)

Hello, I am facing an weird issue in kubernetes yaml file with initContainers. It shows that my initContainer is successfully running but it is in not ready state and it remains forever. There are no errors in initcontainer logs and logs shows success result .Am i missing anything ?

Kubernetes file:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: graphql-engine
name: graphql-engine
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: graphql-engine
strategy: {}

template:
metadata:
labels:
io.kompose.service: graphql-engine
spec:

  initContainers:
  # GraphQl
    - env:
        - name: HASURA_GRAPHQL_ADMIN_SECRET
          value: devsecret
        - name: HASURA_GRAPHQL_DATABASE_URL
          value: postgres://postgres:postgres@10.192.250.55:5432/zbt_mlcraft
        - name: HASURA_GRAPHQL_ENABLE_CONSOLE
          value: "true"
        - name: HASURA_GRAPHQL_JWT_SECRET
          value: '{"type": "HS256", "key": "LGB6j3RkoVuOuqKzjgnCeq7vwfqBYJDw", "claims_namespace": "hasura"}'
        - name: HASURA_GRAPHQL_LOG_LEVEL
          value: debug
        - name: HASURA_GRAPHQL_UNAUTHORIZED_ROLE
          value: public
        - name: PVX_MLCRAFT_ACTIONS_URL
          value: http://pvx-mlcraft-actions:3010
      image: hasura/graphql-engine:v2.10.1
      name: graphql-engine
      ports:
        - containerPort: 8080
      resources: {}
  restartPolicy: Always
  containers:
    - env:
        - name: AUTH_CLIENT_URL
          value: http://localhost:3000
        - name: AUTH_EMAIL_PASSWORDLESS_ENABLED
          value: "true"
        - name: AUTH_HOST
          value: 0.0.0.0
        - name: AUTH_LOG_LEVEL
          value: debug
        - name: AUTH_PORT
          value: "4000"
        - name: AUTH_SMTP_HOST
          value: smtp.gmail.com
        - name: AUTH_SMTP_PASS
          value: fahkbhcedmwolqzp
        - name: AUTH_SMTP_PORT
          value: "587"
        - name: AUTH_SMTP_SENDER
          value: noreplaypivoxnotifications@gmail.com
        - name: AUTH_SMTP_USER
          value: noreplaypivoxnotifications@gmail.com
        - name: AUTH_WEBAUTHN_RP_NAME
          value: Nhost App
        - name: HASURA_GRAPHQL_ADMIN_SECRET
          value: devsecret
        - name: HASURA_GRAPHQL_DATABASE_URL
          value: postgres://postgres:postgres@10.192.250.55:5432/zbt_mlcraft
        - name: HASURA_GRAPHQL_GRAPHQL_URL
          value: http://graphql-engine:8080/v1/graphql
        - name: HASURA_GRAPHQL_JWT_SECRET
          value: '{"type": "HS256", "key": "LGB6j3RkoVuOuqKzjgnCeq7vwfqBYJDw", "claims_namespace": "hasura"}'
        - name: POSTGRES_PASSWORD
          value: postgres
      image: nhost/hasura-auth:latest
      name: auth
      ports:
        - containerPort: 4000
      resources: {}

apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: graphql-engine
name: graphql-engine
spec:
type: LoadBalancer
ports:
- name: “8080”
port: 8080
targetPort: 8080
selector:
io.kompose.service: graphql-engine
status:
loadBalancer: {}


apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: graphql-engine
name: auth
spec:
ports:

  • name: “4000”
    port: 4000
    targetPort: 4000
    selector:
    io.kompose.service: graphql-engine
    status:
    loadBalancer: {}