Helm provides a simple way to deploy AIStore (AIS) managed by the AIS operator. This directory contains Helm charts for deploying the following:
| Component | Description |
|---|---|
| AIS | Templates an AIStore custom resource for defining a cluster |
| AIS K8s Operator | Installs the AIStore CustomResourceDefinition and deploys the AIS K8s Operator for reconciling AIStore resources |
| AIS authN server | Deploys the beta AIS Authentication Server |
| AIS Loader | Deploys the aisloader benchmark tool for testing cluster performance |
| Issuer | Creates a simple cert-manager SelfSigned ClusterIssuer or namespaced Issuer |
- Local Kubectl configured to access the cluster
- Kubernetes nodes configured with formatted drives
- The host-config playbooks provide a good starting point for properly configuring your hosts and formatting drives.
- Helm installed locally
- Helm-diff plugin:
helm plugin install https://github.com/databus23/helm-diff - Helmfile: https://github.com/helmfile/helmfile?tab=readme-ov-file
- Helm-diff plugin:
- cert-manager installed and running in the cluster
- Required before deploying the operator: the operator helmfile checks for cert-manager as a presync step and will fail if it is not present.
- Verify:
kubectl get pods -n cert-manager
- Configure access to your cluster with a new context. See the k8s docs.
- Check your current context:
kubectl config current-context - Switch to your cluster:
kubectl config use-context <your-context>
We use helmfile to install the charts.
Before starting: For each chart you want to deploy:
- Add your environment to the
environmentssection in the helmfile - Copy
values-sample.yaml(or an existing config) to a new file in theconfigdirectory - Name the new file to match your environment name
- Update the values for your deployment
Follow these steps in order:
This step is optional.
To use HTTPS for AIStore or AuthN, you'll need an issuer to create certificate bundles.
An existing cert-manager Issuer or ClusterIssuer can be used, or follow the instructions below to bootstrap a self-signed issuer.
We provide a chart to set up a self-signed issuer.
Set issuerKind to ClusterIssuer (cluster-wide, the default) or Issuer (namespaced) in your config file.
Before proceeding, ensure that cert-manager is installed and all its pods are running in your cluster.
You can verify this by running the provided check_cert_manager.sh script.
- Go to the
issuerdirectory - Create a new environment in the helmfile
- Update your certificate values in a config file
- Run:
helmfile sync -e <your-env>
Check it worked: for a ClusterIssuer, kubectl get clusterissuer should show a ca-issuer ready; for a namespaced Issuer, kubectl get issuer -n <namespace> should show it ready.
2. Deploy AuthN Server (optional - only if you want AuthN)
You only need AuthN if you want authentication/authorization for your AIS cluster. If you don't want AuthN, skip this step.
Deployment order depends on which chart you use:
authnchart — deploy before the operator and AIS. It creates the resources the operator needs to reach the AuthN server and AIS.aisauthchart — install the operator first, since the operator reconciles AuthN from anAIStoreAuthresource.
See the authn directory for instructions on deploying the AuthN server, including all options for deploying with HTTPS and other configurations.
- Go to the operator directory
- Update helmfile.yaml with your desired ais-operator chart version
- Create a new environment and update config files for that environment
- Install:
helmfile sync -e <your-env>
Note: Only operator versions >= 1.4.1 work with Helm Charts.
Check the deployment status:
kubectl get deployment -n ais-operator-systemSee the AIS chart docs for detailed instructions.