Kubernetes Cluster Setup
Install Kubernetes Distribution
sudo apt install -y curl curl -L https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
curl -sfL https://get.k3s.io | sh -sudo addgroup k3s-admin sudo adduser $USER k3s-admin sudo usermod -a -G k3s-admin $USER sudo chgrp k3s-admin /etc/rancher/k3s/k3s.yaml sudo chmod g+r /etc/rancher/k3s/k3s.yaml su - $USERkubectl get nodeexport KUBECONFIG=/etc/rancher/k3s/k3s.yaml sudo apt install -y curl curl -L https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
Configure crictl
crictl helm install akri akri-helm-charts/akri \
$AKRI_HELM_CRICTL_CONFIGURATIONexport AKRI_HELM_CRICTL_CONFIGURATION="--set kubernetesDistro=k8s"export AKRI_HELM_CRICTL_CONFIGURATION="--set kubernetesDistro=k3s"export AKRI_HELM_CRICTL_CONFIGURATION="--set kubernetesDistro=microk8s"export AKRI_HELM_CRICTL_CONFIGURATION="--set agent.host.containerRuntimeSocket=/container/runtime.sock"Last updated
Was this helpful?