Hello-Home
Last updated
Last updated
Let's check if we got everything ready:
Okay if we got everything let's start. We will use k3ai-cli
to do everything so you don't really have to learn how to do things over than learn k3ai. The diagram below shows you how the various k3ai-cli
command will drive you through the Hello* guides
The first step is to learn how to install the cluster (unless you don't have one already). K3ai support various configurations:
Local deployments
Cloud deployments
We make use of a configuration file to drive the various installation steps so, while the main goal of K3ai is not to deploy Kubernetes clusters we aim to make the life of our users as simple as possible.
Note: are you an expert in automation and cluster deployment (K8s)? Help us and add some nice tooling to K3ai.
K3ai currently support the following local clusters:
Rancher K3s - https://rancher.com/docs/k3s/latest/en/
Mirantis K0s - https://k0sproject.io/
KinD - https://kind.sigs.k8s.io/
Rancher K3d - https://k3d.io/
On the cloud side we do offer support for:
Civo Cloud - https://www.civo.com/kube100
AWS - (Work In Progress)
This guide will use the local installation.
Open a terminal window and simply type the following:
What will happen is the following:
If it does not exist a folder named .k3ai
will be created under your home directory (i.e.: in Linux under /home/yourusername/) inside this directory we will download a sample config.yaml
file.
The config.yaml
has a default installation cluster: KinD that requires docker to be installed.
If you don't have docker installed at this point you have to follow this guide here
If you don't want to use Kind just go to step 3
If you got docker installed we will deploy Kind automatically and you're ready to move to Hello-Earth. If you don't want kind and/or don't want to install docker keep reading.
An alternative way to install a cluster and be able to choose the favorite flavor is to use a slightly different command
Let's go into more details here's the full list of options:
k3ai init --local k3s
k3ai init --local k0s
k3ai init --local kind
k3ai init --local k3d
In case of Cloud:
k3ai init --cloud civo
Now to sum it up here's a video that shows how it works.
Home Rebuild - Foundation
As we mentioned at the beginning of this guide k3ai support a config file as well. The config file looks like the one below and is located at <home user folder>/.k3ai/config.yaml but k3ai support also a custom location through k3ai init --config <yourpath to config file>
For cloud there a couple of extra configs like the one below
Done your Hello Home is ready! You may proceed to the Hello-Earth section