automation: Optimize cluster-up time #2
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rebased on #1 (first two commits)
Creating cluster takes may take long time, about 10 minutes (depends on connection).
The most time consuming operations is pulling cluster components images
(e.g.:
Kubevirt,Multus) and building OVN-Kubernetes images.Every time the cluster is deleted, all images are discarded and has to be pulled
again next time the cluster is created.
This PR setup a local registry that serves will serve as a cache for the cluster components images.
persisted and can be reused next time the cluster is created.
This PR also:
Kubevirt andMultus outsidekind.sh
script in a way all images are persisted in the local registry.With this PR changes cluster-up time is reduced to about 4 minutes.
[1] https://github.com/ovn-org/ovn-kubernetes/pkgs/container/ovn-kubernetes%2Fovn-kube-f