Skip to content

Development

Setup a local Kubernetes cluster and deploy the Helm charts.

Requirements

The development environment requires these tools:

Setup

Clone the repository:

git clone git@github.com:Mint-System/Kubernetes-Build.git
cd Kubernetes-Build

Setup bash/zsh alias task='./task' with optional completion

Setup the local hostnames.

task setup-hosts

Start and prepare Kubernetes cluster

The following command will start the kind cluster and install the base charts.

task start-and-prepare

It also load the Odoo image into the cluster.

Deploy Odoo chart

Setup secrets according to the Odoo chart readme.

Install the Odoo chart:

task install-chart odoo test_values/knd/odoo.yaml

The Odoo database will be initialized automatically.

Select the default namespace.

kubectl-ns default

Forward the traefik port.

task forward traefik

Deploy Nextcloud chart

Load the local image into the cluster.

task load-image nextcloud:32-apache

Setup secrets according to the Nextcloud chart readme.

Install the Nextcloud chart:

task install-chart nextcloud test_values/knd/nextcloud.yaml

The Odoo database will be initialized automatically.

Forward the traefik port.

task forward traefik

Develop Helm charts

Generate Helm chart readmes:

task docs

Lint Helm charts:

task lint