Kubernetes Cluster Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Before deploying Akri, you must have a Kubernetes cluster (v1.16 or higher) running with kubectl
and Helm
installed. Akri is Kubernetes native, so it should run on most Kubernetes distributions. This document provides cluster setup instructions for the three Kubernetes distributions that all of our end-to-end tests run on.
Reference for instructions on how to install Kubernetes. See Akri's to see what versions of Kubernetes Akri has been tested on.
Install Helm for deploying Akri.
crictl
Akri depends on crictl
to track some Pod information. In order to use it, the Agent must know where the container runtime socket lives. This can be configured with Akri's Helm chart either directly by setting agent.host.containerRuntimeSocket
or indirectly by specifying the Kubernetes distribution that is being used (kubernetesDistro=k3s|microk8s|k8s
). If a distribution is specified, then the appropriate default will be used. If no distribution or runtime is specified, the k8s
default is used.
Akri recommends setting this choice as an AKRI_HELM_CRICTL_CONFIGURATION
environment variable and then adding the variable to each Akri installation like so:
The following are the recommended settings based on Kubernetes distribution.
To use the default standard Kubernetes container runtime socket /run/containerd/containerd.sock
, set k8s
as the distribution.
Install . The following will install the latest MicroK8s version. Add --channel=$VERSION/stable
to specify as specific Kubernetes version. Reference Akri's to see what versions of MicroK8s Akri has been tested on.
If desired, reference to add additional nodes to the cluster.