-
-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Registry for v4 & Restructure Cluster Creation #334
Conversation
…oid having the default values everywhere
@iwilltry42 I may have missed it but if you haven't already I suggest adding a string slice of registries to connect to by name when invoking |
Thanks for the feedback @dweomer !
Fast and painless cluster reboots are on our list anyway to allow updating settings after creating the cluster. So I'll just postpone
Yep, I will definitely add this again. That's also how k3d 1.x handled registries (creation and connection). |
Will there be a way to create the registry automatically upon cluster creation, or will this have to be a second set of commands ? |
ClusterRun bundles/orchestrates all the steps: 1. Preparation (Infrastructure) 2. Creation 3. Configuration 4. Start
…on first seeing a restarting container
...instead of concurrently starting them which may lead to crashloops due to too many members learning
1a8dc12
to
6c59e0e
Compare
6c59e0e
to
bba53c3
Compare
Overview
First Level
k3d registry
k3d registry create
--cluster
(multiple): clusters to attach to upon creationk3d registry delete
k3d registry start
k3d registry stop
k3d registry connect
Second Level
k3d cluster create --registry-use REGISTRY_NAME
k3d cluster create --registry-create
k3d registry create REGISTRY_NAME
andk3d cluster create --registry-use REGISTRY_NAME
Important Notes
registries.yaml
files when creating/starting/stopping/deleting a registryStatus
k3d registry
commandOld PR: #283 (old syntax, closed in favor of this new PR)
FYI @inercia
Dependencies
Depends on #351 (rebased 03.12.2020)
❗ Additional Changes ❗
While working on this PR, some changes had to be made, which affect the overall architecture/structure/workflow:
ClusterCreate
into decoupled steps, orchestrated byClusterRun
:ClusterPrep
: build supporting infrastructure (like the network and volumes)ClusterCreate
: create the node containers (but not start them yet)ClusterConfigure
: do some offline configuration (like writing theregistries.yaml
)ClusterStart
: actually start the node containers (and auxiliary containers)pkg/cluster
topkg/client
to improve consistent naming and reduce stuttering (likecluster.ClusterGet
)noun-action
k3d cluster create --kubeconfig-switch-context --kubeconfig-update-default