Development
Setup a local Kubernetes cluster and deploy the Helm charts.
Requirements
Setup the required tools:
- helm, kubectl and kubctx
- Setup kind
- Optional: bash/zsh alias
task='./task'with completion.
Clone the repository:
bash
git clone git@github.com:Mint-System/Kubernetes-Build.git
cd Kubernetes-BuildStart Kubernetes cluster
Start cluster with kind.
bash
task start-kindPrepeare cluster
Add Helm chart repos.
bash
task add-reposSetup the local hostnames.
bash
task setup-hostsInstall the CloudNativePG chart:
bash
task install-chart cnpg test/knd.local.yamlInstall ingress-nginx in the current cluster.
bash
task install-chart ingress-nginx test/knd.local.yamlInstall k8up in the current cluster.
bash
task install-chart k8up test/knd.local.yamlDeploy Odoo chart
Load the local image into the cluster.
bash
task load-image mintsystem/odoo:18.0.20251008Setup secrets according to the Odoo chart readme.
Install the Odoo chart:
bash
task install-chart odoo test/odoo.knd.local.yamlThe Odoo database will be initialized automatically.
Forward the ingress-nginx port.
bash
task forward ingress-nginxDeploy Nextcloud chart
Load the local image into the cluster.
bash
task load-image nextcloud:32-apacheSetup secrets according to the Nextcloud chart readme.
Install the Nextcloud chart:
bash
task install-chart nextcloud test/nextcloud.knd.local.yamlThe Odoo database will be initialized automatically.
Forward the ingress-nginx port.
bash
task forward ingress-nginx