question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ksvc Uninitialized with Waiting for load balancer to be ready error

See original GitHub issue

/kind bug

What steps did you take and what happened: I deployed the following custom predictor inference service definition:

apiVersion: serving.kubeflow.org/v1alpha2
kind: InferenceService
metadata:
  annotations:
    autoscaling.knative.dev/maxScale: '5'
    autoscaling.knative.dev/minScale: '1'
  labels:
    app: iris
    app.kubernetes.io/instance: iris-dev
    controller-tools.k8s.io: '1.0'
    env: mlk8s-dev
    sidecar.istio.io/inject: 'false'
    version: 0.0.35
  name: iris
  namespace: dev
spec:
  default:
    predictor:
      custom:
        container:
          env:
            - name: PATH_TO_MODEL
              value: '/mnt/models/iris/models/2021-05-05T18:47:18.359991/'
            - name: STORAGE_URI
              value: 'pvc://dev-pvc'
            - name: MODEL_VERSION
              value: 0.0.35
          image: 'custom-image/iris-kfserving:0.0.35'
          name: kfserving-container
          resources:
            limits:
              cpu: '1'
              memory: 6Gi
            requests:
              cpu: 250m
              memory: 4Gi

What did you expect to happen: The inference service to be in READY status True and routes to be setup correctly.

Anything else you would like to add: I installed kubeflow through aws argoflow distribution . I noticed there is a missing virtual service:

kubectl get vs -n dev | grep iris
iris-predictor-default-ingress                                ["istio-system/cluster-local-gateway","kubeflow/kubeflow-gateway"]   ["iris-predictor-default.dev","iris-predictor-default.dev.serving.domain-name","iris-predictor-default.dev.svc","iris-predictor-default.dev.svc.cluster.local"]                                                                                                                       22m
iris-predictor-default-mesh                                   ["mesh"]                                                             ["iris-predictor-default.dev","iris-predictor-default.dev.svc","iris-predictor-default.dev.svc.cluster.local"]                                                                                                                                                                             22m

Environment:

  • Istio Version: 1.10.2
  • Knative Version: v0.24.0
  • KFServing Version: v0.6.0
  • Kubeflow version: v1.3.0
  • Kfdef: N/A
  • Minikube version: EKS cluster
  • Kubernetes version: (use kubectl version): kubectl version Client Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.4-dirty", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"dirty", BuildDate:"2021-03-15T10:03:32Z", GoVersion:"go1.16.2", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"19+", GitVersion:"v1.19.13-eks-8df270", GitCommit:"8df2700a72a2598fa3a67c05126fa158fd839620", GitTreeState:"clean", BuildDate:"2021-07-31T01:36:57Z", GoVersion:"go1.15.14", Compiler:"gc", Platform:"linux/amd64"}
  • OS (e.g. from /etc/os-release):

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amybachircommented, Jan 8, 2022

@edwardzjl what does your config-istio configmap looks like? What is the value of enable-virtualservice-status ?

Can you run the following command: kubectl describe cm config-istio -n knative-serving

0reactions
markwintercommented, Jan 21, 2022

We started having this issue after having a problem with istio getting OOM failures. After fixing istio I could only fix the ksvc “Waiting for load balancer” issue by forcing a new revision update.

We also recently changed the expiry time on the kserve certificate, perhaps also related

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging application issues - Knative
If the Ingress is working correctly, we should see the condition with type=Ready to have status=True . Otherwise, there will be error messages....
Read more >
Knative Serving | Kube by Example
An error or another unexpected event happened. ... 7.005s Waiting for load balancer to be ready 7.133s Ready to serve. Service 'echo' updated...
Read more >
Serverless applications - Develop - OpenShift Documentation
The ksvc directory contains the descriptor file event-display.yaml , named ... 23.534s Waiting for load balancer to be ready 23.723s Ready to serve....
Read more >
Hello World with Knative Serving - Zoltan Altfatter
Serving is responsible for deploying containers on Kubernetes, taking care of the details of networking, autoscaling (even to zero), upgrading, ...
Read more >
Traffic Distribution :: Knative Tutorial - GitHub Pages
To overcome this problem Knative provides tagging of revision names that allows one ... 0.162s Waiting for load balancer to be ready 0.303s...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found