Comments (3)
Found the guilty. The restore functionality creates the endpoints by reading the header stored on the endpoint's directory. (1) At that time the endpoint program is regenerated to see if everything is alright. After that it allocates the endpoints IP and recompiles the program again (2). After the endpoints were restored, cilium syncs with the docker daemon to see which containers are still up and running.
While doing that check it reaches the line docker_watcher.go#L371:d.triggerPolicyUpdates([]policy.NumericIdentity{secCtxlabels.ID}) where, inside that function, the whole cache is invalidated (policy.go#L105:d.invalidateCache()) and triggers a policy update for every endpoint in the daemon in policy.go#L109:err := ep.TriggerPolicyUpdates(d).
The FIXME in policy.go#L104:// FIXME: Invalidate only cache that is affected needs to be addressed to solve this issue.
from cilium.
We can solve it by implementing partial policy resolution but I don't think it addresses the main issue. How about we ensure the restore functionality is run before we start accepting any external API calls and events and lock the daemon down. Individually restore the endpoints using an API which does not generate the endpoints. Then finally, trigger a full policy calculation followed by generation of all the programs.
from cilium.
The lock down already happens
Individually restore the endpoints using an API which does not generate the endpoints.
Yep, sounds good to me.
from cilium.
Related Issues (20)
- CiliumEndpointSlice Graduation to Stable HOT 2
- CFP: please use the full monitor width for --help output in docs
- BGP: IPv6 peering not working (IPv4 works) HOT 2
- CFP: Move cilium/hubble into cilium/cilium
- CI: Socket lookup failed in ci-upgrade-e2e
- Connectivity issue: not enough replicas HOT 3
- An unexported field was encountered
- CFP: Forwarding ingress labels and annotations to dedicated controllers. HOT 2
- ci-e2e-upgrade: Add minor / patch upgrades HOT 1
- Cilium Gateway unexpectedly translates grpc-web requests to gRPC HOT 2
- Gateway spec.infrastructure.annotations field cannot hold more than 8 annotations HOT 1
- L7 Envoy service mesh - Cannot reach the service with multiple ports HOT 1
- Cilium does not remove agent-not-ready taint from nodes on uninstall
- Cilium pods fail to start after upgrade from 1.15.3 to 1.15.4 HOT 5
- Kubespray, Cilium ClusterMash not working HOT 1
- Issue with Cilium Egress Configuration in EKS HOT 3
- advertisedPathAttributes in CiliumBGPPeeringPolicy doesn't seem to apply to address from cidr defined in CiliumLoadBalancerIPPool>spec>bloks
- Add support for service.kubernetes.io/topology-mode annotation HOT 2
- Cluster Mesh K3S / RKE2 HOT 2
- Consider making `policy-cidr-match-mode=nodes` the default HOT 1
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 cilium.