Comments (2)
In this environment, 8 addressblocks were created from the default
addresspool.
cybozu@gcp0-boot-0:~$ kubectl get addressblock | grep default
default-0 10.69.0.5 default 10.64.0.0/27
default-1 10.69.0.196 default 10.64.0.32/27
default-2 10.69.1.133 default 10.64.0.64/27
default-3 10.69.0.196 default 10.64.0.96/27
default-4 10.69.0.197 default 10.64.0.128/27
default-5 10.69.1.132 default 10.64.0.160/27
default-6 10.69.0.4 default 10.64.0.192/27
default-7 10.69.1.134 default 10.64.0.224/27
But coil-controller failed to count the addressblocks.
According to the following logs, it is misjudged as 7.
cybozu@gcp0-boot-0:~$ stern -n kube-system coil-controller-
(...)
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760489.8024213,"logger":"blockrequest-reconciler","msg":"allocated","blockrequest":"req-default-10.69.1.132","block":"defaul
t-5","index":5,"pool":"default"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760511.0823762,"logger":"pool-manager","msg":"created AddressBlock","pool":"default","index":6,"node":"10.69.0.4"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760511.082449,"logger":"blockrequest-reconciler","msg":"allocated","blockrequest":"req-default-10.69.0.4","block":"default-6
","index":6,"pool":"default"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760603.1189501,"logger":"pool-manager","msg":"created AddressBlock","pool":"default","index":7,"node":"10.69.1.134"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760603.119075,"logger":"blockrequest-reconciler","msg":"allocated","blockrequest":"req-default-10.69.1.134","block":"default
-7","index":7,"pool":"default"}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760603.1197767,"logger":"pool-manager","msg":"resynced block usage","pool":"default","blocks":7}
coil-controller-cc56ff6f-sw5rq coil-controller {"level":"info","ts":1617760603.1198223,"logger":"addresspool-reconciler","msg":"synchronized"}
from coil.
The List
in pool.SyncBlocks
might not list all resources due to the local cache.
Use Manager.GetAPIReader()
to list addressblocks, instead of Manager.GetClient()
.
from coil.
Related Issues (20)
- Coil-egress accidentally deletes a peer
- Enhance CNI delete delay implementation HOT 1
- Create PDB for Egress NAT pods
- Enhance the graceful termination for Egress NAT HOT 2
- Support Kubernetes 1.25 and update dependencies
- Fix the IP address allocation logic from AddressBlock HOT 3
- Support Kubernetes 1.26 and update dependencies
- useless replace usage left in go.mod HOT 1
- Coil egress has downtime due to the timing of updating coild and coil controller HOT 7
- Use encap-sport auto in FOU tunnel setting for coil-egress HOT 1
- Support Kubernetes 1.27 and update dependencies
- Remove the unnecessary code block for v1 migration
- CNI issue in kind-created cluster HOT 5
- Unable to delete AddressPool
- Rename the CRD's finalizer name
- Two AddressBlocks are created when coil-controller is temporarily down HOT 5
- Standalone Egress NAT HOT 7
- Fix not to allocate addresses from pools while its pools are deleting
- Egress: There is downtime on startup new NAT clients
- Implement STATUS and GC commands for CNI v1.1.0
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 coil.