Running with Kubernetes (helm)
Prerequisites:
- A Kubernetes cluster
You must have Kubernetes installed. As example: Get started with Amazon EKS
- You should also have a local configured copy of kubectl Install and Set Up kubectl.
By default, kubectl looks for a file named config in the $HOME/.kube directory. You can specify other kubeconfig files by setting the KUBECONFIG environment variable or by setting the --kubeconfig flag.
Verify Kubernetes setup:
kubectl cluster-info- Helm installed
Make sure you have Helm installed on your system. For more details, see Installing Helm.
Verify Helm installation:
helm versionInstallation Steps:
Initialize a Helm Chart Repository
Once you have Helm ready, you can add a chart repository:
git clone https://git.qix.sx/adentro/flow8-helm.gitNavigate into the project directory:
cd flow8-helmCreate a .env file with environment variables and place in ./api/files/ folder for api.
Read more about in Environment variables section
Create ./api/variables.yaml as provided in example ./api/variables.yaml.example
Read more about in Helm variables section
Install the chart in the Kubernetes cluster:
For api:
helm install flow8-api ./apiFor ui app:
helm install flow8-ui ./frontOr for upgrade:
For api:
helm upgrade flow8-api ./apiFor ui app:
helm upgrade flow8-ui ./frontVerify the deployment:
kubectl get deployments