Add libvirt provider for labctl#687
Open
fccagou wants to merge 4 commits into
Open
Conversation
8c0aa65 to
d6c9468
Compare
d6c9468 to
77db9b1
Compare
…g TF_VAR_xxx from env
The main usecase is to create mini cluster to test changes without creating new settings/xxx file.
The next example
TF_VAR_nodes_per_cluster=1 \
TF_VAR_node_size=S \
./labctl create --students 1 --settings settings/kubernetes.env --provider proxmox --tag container-training
will create 1 cluster on 1 node with S profile for hardware resource.
Signed-off-by: fccagou <me@fccagou.fr>
It's the first version working for only 1 student/cluster.
The code contains `TODO:` labels to remind some ideas for future
versions _( grep -r "TODO:" prepare-labs/terraform/*/libvirt)_
Running testing command on laptop:
TF_VAR_nodes_per_cluster=2 \
TF_VAR_node_size=S \
./labctl create \
--students 1 \
--settings settings/kubernetes.env \
--provider libvirt --tag container-training
To destroy , run
( TAG=container-training ; ./labctl destroy "$TAG" ; rm -f tags/"$TAG"/* )
Signed-off-by: fccagou <me@fccagou.fr>
Signed-off-by: fccagou <me@fccagou.fr>
…er of students Signed-off-by: fccagou <me@fccagou.fr>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is the code for issue #685
I have done many tests to check vm creations and configurations then a test creating 3 nodes to run some commands from the slides :
All works well on my laptop running Archlinux with 4 CPU and 16GB of RAM ( it works on my laptop -> production 😄 )
The commit message shows the command lines and indicate the limitations.
Please to help.