Comments (5)
we will address only the deletion of imagecache resource in this issue. deleting images during imagecache update will be taken up in a separate issue.
from kube-fledged.
We will implement imagecache deletion as follows:-
- Leverage Finalizers mechanism to have control over when the actual API resource get's deleted.
- As a pre-requisite, when the imagecache resource is created, fledged will add finalizer "fledged" to the resource.
- When user wants to delete the imagecache resource, it means the user's intention is to both delete the API resource + purge the cached images.
- User first needs to issue kubectl delete command with "--wait=false" option. Fledged controller will take actions to remove the cached images from the worker node. It will then update the status of the removal to status field of imagecache resource. However the finalizer "fledged" will not be removed yet, so the API resource will not be deleted yet.
- User then can query the imagecache resource using kubectl/curl to check the status of purging the imagecache. If there are any failures in removal, user should note down the image name and node and has to remove those failing images manually. Alternatively user can choose to leave the images in the worker nodes.
- User then needs to issue a second kubectl delete command with "--now". Fledged controller will remove the finalizer from the imagecache resource. The API resource will automatically get deleted. An event will also be generated.
from kube-fledged.
@senthilrch , Kindly assign this issue to me
from kube-fledged.
@kannanvr : How is it going?
from kube-fledged.
@kannanvr : kindly update the progress if any
from kube-fledged.
Related Issues (20)
- Scale from zero node pool support? HOT 1
- Why not Daemon set? HOT 1
- TLS errors when updating kube-fledged helm chart HOT 4
- [question] Does it work with the in-cluster pull through cache? HOT 2
- Failing to pull image HOT 1
- Enhancement: Refactor controller syncHandler() method
- Feature: Fine grained node selection
- Feature: Awareness of available disk space
- Optimize the image download to node cache. HOT 1
- Auto cache when new node added to cluster HOT 4
- Release Date? HOT 3
- Feature: Ability to pass labels/annotations to job pods HOT 1
- Question: How to access images in cache?
- Configuration and Troubleshooting- Cache not being used HOT 1
- Question: ignore pulling to control-plane
- License.md not found
- Adding Contributors Section to the Readme.md HOT 2
- feature: hostNetwork for image pull jobs
- Enhancement: Enforce Minimum TLS Version HOT 2
- image cache failing-No images were pulled or deleted because nodeSelector specified did not match any nodes when trying without node selector
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 kube-fledged.