feat: Improve documentation and add example scripts
This commit is contained in:
1 parent
0c2596f6a6
commit
cb7dd981bf
8 files changed
+215
-34
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
CONTAINER_NAME="${1:-microk8s-container}"
|
||||
|
||||
echo "Creating microk8s container: $CONTAINER_NAME"
|
||||
|
||||
# Install the profile using the helper script
|
||||
./install.bash profiles/containerization/microk8s.profile.yaml
|
||||
|
||||
# Launch the container
|
||||
lxc launch ubuntu:lts -p default -p microk8s "$CONTAINER_NAME"
|
||||
|
||||
# Wait for cloud-init
|
||||
echo "Waiting for cloud-init to complete..."
|
||||
lxc exec "$CONTAINER_NAME" -- cloud-init status --wait
|
||||
|
||||
echo "microk8s container '$CONTAINER_NAME' is ready!"
|
||||
echo "Access with: lxc shell $CONTAINER_NAME"
|
||||
Reference in new issue
Block a user