Deployment of WrenAi app in your K8s using ArgoCD
The main ArgoCD app wrenai.app.yaml located here
The main kustomization folder located here.
You will need to modify the Secret, Ingress and Certificate manifests in the examples folder. And also the ConfigMap kustomization patch file in the patches folder.
Modify the example of the secrets manifest first before applying the main kustomization. Do not include Secter manifest into your ArgoCD repo. Best practice is not to store your password in your git repo!
vi infra-deployments/wrenai/kustomizations/examples/secret-wren_example.yaml
kubectl apply -f infra-deployments/wrenai/kustomizations/examples/secret-wren_example.yaml
Check the resulting manifests inflated by kustomization tool before you apply them to yuor k8s cluster:
kubectl kustomize infra-deployments/wrenai/kustomizations --enable-helm > infra-deployments/wrenai/kustomizations/wrenai.kustimized.yaml
What’s the difference with the official kustomization? You’ll feel the difference when you need to update your app. Next time you need to upgrade your WrenAI, just change the ref=
in main resource https://github.com/Canner/WrenAI.git/deployment/kustomizations?ref=0.4.0 to a newer version in the kustomization.yaml file. And voila!
kustomization enable-helm
flag is used to deploy helm. Example of helm-values file for ArgoCD to enable helm for kustomization.