Giter VIP home page Giter VIP logo

Comments (4)

ahmetb avatar ahmetb commented on August 26, 2024

@ryanmcginnis I cannot reproduce this on my cluster. Here are some things that might've gone wrong:

  1. Are you adding :8080 port number to the external IP address?
  2. You might have hit a quota in your GCP project. Can you send the output of kubectl describe service hello-web, this should show if the load balancer is created correctly or not.

from kubernetes-engine-samples.

ryanmcginnis avatar ryanmcginnis commented on August 26, 2024

I am specifying the port. Here is the output of kuebctl describe:

Name:                     hello-web
Namespace:                default
Labels:                   run=hello-web
Annotations:              <none>
Selector:                 run=hello-web
Type:                     LoadBalancer
IP:                       10.63.242.155
LoadBalancer Ingress:     104.154.217.236
Port:                     <unset>  8080/TCP
TargetPort:               8080/TCP
NodePort:                 <unset>  30237/TCP
Endpoints:                <none>
Session Affinity:         None
External Traffic Policy:  Cluster
Events:
  Type    Reason                Age   From                Message
  ----    ------                ----  ----                -------
  Normal  CreatingLoadBalancer  2m    service-controller  Creating load balancer
  Normal  CreatedLoadBalancer   1m    service-controller  Created load balancer

I think you're probably right that I've hit a quota, let me take another look at that.

from kubernetes-engine-samples.

ryanmcginnis avatar ryanmcginnis commented on August 26, 2024

I found the problem and I think it's interesting behavior:

Events:
  Type     Reason            Age                 From               Message
  ----     ------            ----                ----               -------
  Warning  FailedScheduling  4s (x1378 over 6h)  default-scheduler  No nodes are available that match all of the following predicates:: PodToleratesNodeTaints (1).

I had a taint for this cluster's nodes. I would have expected to be warned in the CLI or to see in the UI that the Pods weren't being scheduled because of this. But it's fair that most users would probably remember setting a taint.

Thanks for your review!

from kubernetes-engine-samples.

ahmetb avatar ahmetb commented on August 26, 2024

would have expected to be warned in the CLI or to see in the UI that the Pods weren't being scheduled because of this.

Scheduling in Kubernetes happens asynchronous of Pod creation. In this case, we actually create more indirection by deploying pods using Deployment controller. I suspect this is by design.

from kubernetes-engine-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.