K3s on Ubuntu 24.04
Download a VDI disk image from https://www.osboxes.org/ubuntu-server/
Import in VirtualBox and run as a VM
Install basics:
sudo apt update sudo apt upgrade sudo apt install openssh-server vim
Install k3s:
curl -sfL https://get.k3s.io | sh -
Validate:
systemctl status k3s kubectl get all -n kube-system
Install helm:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh
Example helm chart install
Set k3s config file:
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
Add helm repository:
helm repo add airbyte https://airbytehq.github.io/helm-charts helm repo update helm search repo airbyte
Install
helm install airbyte-test airbyte/airbyte
Pay attention to instructions:
1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=webapp" -o jsonpath="{.items[0].metadata.name}") export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") echo "Visit http://127.0.0.1:8080 to use your application" kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT