Helm is a package manager for Kubernetes. A Helm Chart is a Helm package and contains all of the resource definitions necessary to run an application on a Kubernetes cluster. This topic describes how to use Helm to automatically deploy a PhoenixAI warehouse on a Kubernetes cluster.
Note: Warehouse is an enterprise feature for PhoenixAI.
Add the PhoenixAI Helm repository.
$ helm repo add phoenixai https://celerdata.github.io/phoenixai-kubernetes-operator
$ helm repo update phoenixai
$ helm search repo phoenixai
NAME CHART VERSION APP VERSION DESCRIPTION
phoenixai/kube-anywhere 2.0.0 4.1.5-ee kube-anywhere includes three subcharts, operator, phoenixai and anywhere
phoenixai/operator 2.0.0 2.0.0 A Helm chart for PhoenixAI operator
phoenixai/phoenixai 2.0.0 4.1.5-ee A Helm chart for PhoenixAI cluster
phoenixai/warehouse 2.0.0 4.1.5-ee Warehouse is a feature of the PhoenixAI Enterprise Edition
Prepare the values.yaml file.
# The name of warehouse in PhoenixAI. You can execute `show warehouses` command in SQL to see the created warehouse.
nameOverride: "wh1"
spec:
# Make sure the PhoenixAI cluster exists in the same namespace.
# You can check it by running `kubectl -n phoenixai get phoenixaiclusters.phoenixdata.ai`.
phoenixAIClusterName: kube-anywhere
replicas: 1
image: your-enterprise-image-version-for-cn
resources:
limits:
cpu: 8
memory: 8Gi
requests:
cpu: 8
memory: 8Gi
Install the warehouse Chart.
# Use the above values.yaml to deploy a warehouse in namespace phoenixai
helm -n phoenixai install warehouse phoenixai/warehouse -f values.yaml
This chart does not install the PhoenixAIWarehouse CRD — the operator chart does, because
the operator registers its warehouse controller only if the CRD exists when it starts, which is
before this chart runs. If the CRD is missing the install fails with
no matches for kind "PhoenixAIWarehouse"; install it and restart the operator, as described in
Deploy Warehouse.
Please see values.yaml for more details.
helm uninstall warehouse