Comments (12)
the logs are truncated can we have full lines ?
from kubespray.
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.
Are you sure there is no other api-server running ? Looks like it failed the port is already allocated
from kubespray.
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.
Well, i didn't find a solution, even when pausing for 120 secs i face the same issue.
Still searching ...
from kubespray.
I tried a lot of things:
- checking etcd cluster health before starting the apiserver
- using the local etcd
- pausing for 120secs
from kubespray.
rollback to pod?
from kubespray.
No, i think keeping the apiserver as a service is necessary for production environments.
I'll find a solution :)
from kubespray.
kubernetes/kubernetes#19848
kubernetes/kubernetes#16067
from kubespray.
We should configure a workaround, waiting for a stable version which includes the fix.
from kubespray.
Thx @Smana, if its a race condition between master a solution is to spawn restart them one be one.
from kubespray.
Fixed in #107
from kubespray.
Related Issues (20)
- Kubernetes 1.30 Support
- Install bird when cilium using bird to run BGP?
- Kubespray and configure default-ssl cert ingress-nginx
- Allow arguments in liveness-probe for cinder-csi
- extra p in 'stop' word is there in reset role for "Reset | stop all cri pods" task
- Add needed affinities to calico-typha and calico-kube-controllers HOT 1
- Ubuntu 24.04 LTS Support HOT 5
- Error adding node HOT 2
- Release Proposal v2.25 HOT 16
- kubespray v2.24.1 cannot bootstrap in Oracle Linux 7 HOT 2
- kube-scheduler doesn't work properly after reboot HOT 4
- Remove Weave from documents and repository HOT 1
- terraform jobs on elastx failing HOT 1
- Kubespray upgrade failed because etcd-event.service cannot start
- local_path_provisioner_enabled: true - error HOT 4
- boostrap-os: badly formed task file included HOT 5
- kubernetes/preinstall fails due to missing jsonschema package HOT 2
- Kubespray fails on Rocky Linux 9 when running on raspberry pi HOT 1
- Optimize logic of k8s-certs-renew.sh script HOT 5
- Change a task name in preinstall tasks (in 0080-system-configurations.yml )
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubespray.