k0surl configures and installs a k0s Kubernetes cluster and a pre-configured set of add-ons to a set of servers using k0sctl and helm.
./apply.sh
Example hosts.patch.yaml file with a controller and two workers:
apiVersion: k0sctl.k0sproject.io/v1beta1
kind: Cluster
metadata:
name: k0s
spec:
hosts:
- role: controller
ssh:
address: 35.247.41.116
user: ethan
keyPath: ~/.ssh/id_ed25519
- role: worker
ssh:
address: 34.234.21.65
user: ethan
keyPath: ~/.ssh/id_ed25519
- role: worker
ssh:
address: 35.237.129.32
user: ethan
keyPath: ~/.ssh/id_ed25519
HOSTS_PATCH_FILE=./hosts.patch.yaml ./apply.sh
CONFIG_DIR=~/mycluser ./config.sh
CONFIG_DIR=~/mycluser ./apply.sh
DEBUG=true ./apply.sh
$ export KUBECONFIG=./build/render/kubeconfig.yaml
$ ./bin/kubectl get nodes
...
./reset.sh
name | supported |
---|---|
openebs | yes |
rook | todo |
registry | todo |
prometheus | todo |
velero | todo |
kots | yes |
... | todo |
- Preflights and troubleshoot
- Airgap with add-ons
- E2E tests