Git Product home page Git Product logo

Comments (12)

ant31 avatar ant31 commented on May 15, 2024

the logs are truncated can we have full lines ?

from kubespray.

Smana avatar Smana commented on May 15, 2024
Jan 24 20:06:24 kubenode2 kube-apiserver[3975]: F0124 20:06:24.475451    3975 controller.go:84] Unable to perform initial service nodePort check: unable to persist the updated port allocations: servicenodeportallocation "" cannot be updated: another caller has already initialized the resource
Jan 24 20:06:24 kubenode2 systemd[1]: kube-apiserver.service: main process exited, code=exited, status=255/n/a
Jan 24 20:06:24 kubenode2 systemd[1]: Failed to start Kubernetes API Server.
Jan 24 20:06:24 kubenode2 systemd[1]: Unit kube-apiserver.service entered failed state.
Jan 24 20:06:24 kubenode2 kube-apiserver[3982]: I0124 20:06:24.826883    3982 plugins.go:71] No cloud provider specified.
Jan 24 20:06:25 kubenode2 kube-apiserver[3982]: I0124 20:06:25.040406    3982 master.go:368] Node port range unspecified. Defaulting to 30000-32767.
Jan 24 20:06:25 kubenode2 kube-apiserver[3982]: I0124 20:06:25.041444    3982 master.go:390] Will report 10.115.99.42 as public IP address.
Jan 24 20:06:25 kubenode2 kube-apiserver[3982]: [restful] 2016/01/24 20:06:25 log.go:30: [restful/swagger] listing is available at https://10.115.99.42:443/swaggerapi/
Jan 24 20:06:25 kubenode2 kube-apiserver[3982]: [restful] 2016/01/24 20:06:25 log.go:30: [restful/swagger] https://10.115.99.42:443/swaggerui/ is mapped to folder /swagger-ui/
Jan 24 20:06:25 kubenode2 kube-apiserver[3982]: F0124 20:06:25.530392    3982 controller.go:80] Unable to perform initial IP allocation check: unable to persist the updated service IP allocations: serviceipallocation "" cannot be updated: the provided resource version does not match
Jan 24 20:06:25 kubenode2 systemd[1]: kube-apiserver.service: main process exited, code=exited, status=255/n/a
Jan 24 20:06:25 kubenode2 systemd[1]: Failed to start Kubernetes API Server.
Jan 24 20:06:25 kubenode2 systemd[1]: Unit kube-apiserver.service entered failed state.

from kubespray.

ant31 avatar ant31 commented on May 15, 2024

Are you sure there is no other api-server running ? Looks like it failed the port is already allocated

from kubespray.

Smana avatar Smana commented on May 15, 2024

Hmm, the playbook just runs apiserver restarts.
I'll try to use controller-manager and scheduler as services to see if this can be the cause.
For the time being i worked on a workarount #95

from kubespray.

Smana avatar Smana commented on May 15, 2024

Well, i didn't find a solution, even when pausing for 120 secs i face the same issue.
Still searching ...

from kubespray.

Smana avatar Smana commented on May 15, 2024

I tried a lot of things:

  • checking etcd cluster health before starting the apiserver
  • using the local etcd
  • pausing for 120secs

from kubespray.

ant31 avatar ant31 commented on May 15, 2024

rollback to pod?

from kubespray.

Smana avatar Smana commented on May 15, 2024

No, i think keeping the apiserver as a service is necessary for production environments.
I'll find a solution :)

from kubespray.

Smana avatar Smana commented on May 15, 2024

kubernetes/kubernetes#19848
kubernetes/kubernetes#16067

from kubespray.

Smana avatar Smana commented on May 15, 2024

We should configure a workaround, waiting for a stable version which includes the fix.

from kubespray.

ant31 avatar ant31 commented on May 15, 2024

Thx @Smana, if its a race condition between master a solution is to spawn restart them one be one.

from kubespray.

ant31 avatar ant31 commented on May 15, 2024

Fixed in #107

from kubespray.

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.