diff --git a/Makefile b/Makefile index e62c0092..26fdb87a 100644 --- a/Makefile +++ b/Makefile @@ -304,4 +304,12 @@ helm-install: helm .PHONY: helm-package helm-package: - helm package ./chart \ No newline at end of file + # Make sure will alwasy start with a new line. + printf "\n" >> ./chart/values.yaml + cat ./chart/values.global.yaml >> ./chart/values.yaml + + helm package ./chart + helm repo index --url https://inftyai.github.io/llmaz --merge index.yaml . + + # To recover values.yaml + make helm diff --git a/chart/Chart.yaml b/chart/Chart.yaml index f11409c4..176f8698 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -13,7 +13,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.1 +version: 0.0.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. diff --git a/docs/installation.md b/docs/installation.md index d68342d1..c91cf856 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -3,29 +3,21 @@ ## Prerequisites * Kubernetes version >= 1.27 +* Helm ## Install a released version ### Install ```cmd -# leaderworkerset runs in lws-system -LWS_VERSION=v0.3.0 -kubectl apply --server-side -f https://github.com/kubernetes-sigs/lws/releases/download/$LWS_VERSION/manifests.yaml - -# llmaz runs in llmaz-system -LLMAZ_VERSION=v0.0.6 -kubectl apply --server-side -f https://github.com/inftyai/llmaz/releases/download/$LLMAZ_VERSION/manifests.yaml +helm repo add inftyai https://inftyai.github.io/llmaz +helm install llmaz inftyai/llmaz --version 0.0.2 ``` ### Uninstall ```cmd -LWS_VERSION=v0.3.0 -kubectl delete -f https://github.com/kubernetes-sigs/lws/releases/download/$LWS_VERSION/manifests.yaml - -LLMAZ_VERSION=v0.0.6 -kubectl delete -f https://github.com/inftyai/llmaz/releases/download/$LLMAZ_VERSION/manifests.yaml +helm uninstall llmaz ``` ## Install from source @@ -33,15 +25,11 @@ kubectl delete -f https://github.com/inftyai/llmaz/releases/download/$LLMAZ_VERS ### Install ```cmd -LWS_VERSION=v0.3.0 -kubectl apply --server-side -f https://github.com/kubernetes-sigs/lws/releases/download/$LWS_VERSION/manifests.yaml - -git clone https://github.com/inftyai/llmaz.git && cd llmaz -IMG=: make image-push deploy +make helm-install ``` ### Uninstall ```cmd -make undeploy +helm uninstall llmaz ```