11# Deployment using HELM charts
22
3- These examples provide you HELM charts for individual use or the composition .
3+ This page explains how to use the HELM charts for the composition of all containers .
44
55* Chart ` mariadb ` : Deploys MariaDB pod
66* Chart ` postfix ` : Deploys Postfix pod
@@ -29,40 +29,37 @@ YAML files and commands accordingly.
2929* You are familiar with MariaDB or MySQL administration. There are a few commands to be executed directly
3030 on your database. A [ PhpMyAdmin] ( https://hub.docker.com/r/phpmyadmin/phpmyadmin/ ) pod could help you here.
3131
32- ## Clone the Git Repository
32+ ## Configure the HELM repository
3333
34- Make sure you are working in your home directory (or whatever path you want to work in)
34+ Execute the following command to add the HELM repository to your client and load its content:
3535
3636```
37- git clone https://github. com/technicalguru/docker-mailserver.git
38- cd docker-mailserver/examples/ helm-charts/mailserver
37+ helm repo add technicalguru https://raw.githubusercontent. com/technicalguru/helm-repo/master/repo
38+ helm repo update
3939```
4040
41- ## Define you deployment values
41+ ## Copy the original values file
42+
43+ Make sure you are working in your home directory (or whatever path you want to work in). Then download
44+ the values file e.g. via wget:
45+
46+ ```
47+ wget -O my-values.yaml [https://raw.githubusercontent.com/technicalguru/helm-repo/master/src/mailserver/values.yaml](https://raw.githubusercontent.com/technicalguru/helm-repo/master/src/mailserver/values.yaml)
48+ ```
4249
43- You can edit the ` values.yaml ` file directly or make a copy. We will assume that you have made a copy called
44- ` my-values.yaml ` .
50+ ## Define you deployment values
4551
46- Edit the values file now and set all individual variables for your deployment.
52+ You can now edit the ` my- values.yaml ` file directly and set all individual variables for your deployment.
4753
48- * You can comment out or delete variable that you do not change. HELM will use the default values from ` values.yaml ` .
54+ * You can comment out or delete variable that you do not change. HELM will use the default values from ` values.yaml `
55+ or the underlying sub-charts.
4956* You can add values in the individual sections in case you want to change some of the values. Refer to
5057 the in-file documentation of these values.
5158* Make sure that your TLS certificate for Postfix is available. The template will not create any TLS certificate
5259 configuration if the file is not accessible. Do not set the TLS certificate values in your values file (although you can)
5360 but rather use the ` --set-file=... ` command line option to HELM in order to pass the content of these files into the
5461 respective values.
5562
56- ## Update Dependencies
57-
58- You will need to update the dependencies before you can start installation:
59-
60- ```
61- helm dep update
62- ```
63-
64- Alternatively, you can skip this step and use ` --dependency-update ` option in your HELM install command.
65-
6663## Deploy into your Kubernetes cluster
6764
6865You can inspect the result of your deployment in advance by issuing the following command. ` my-mailserver `
@@ -74,7 +71,7 @@ helm template \
7471 --namespace mailserver \
7572 --values my-values.yaml \
7673 --set-file=postfix.tlsCertificate=/path/to/cert.pem,postfix.tlsCertificateChain=/path/to/fullchain.pem,postfix.tlsKey=/path/to/privke.pem \
77- my-mailserver .
74+ my-mailserver technicalguru/mailserver:1.0.0-rc1
7875```
7976
8077Check the output whether the Kubernetes YAML files are what you had in mind when defining the values.
@@ -85,7 +82,7 @@ helm install \
8582 --namespace mailserver \
8683 --values my-values.yaml \
8784 --set-file=postfix.tlsCertificate=/path/to/cert.pem,postfix.tlsCertificateChain=/path/to/fullchain.pem,postfix.tlsKey=/path/to/privke.pem \
88- my-mailserver .
85+ my-mailserver technicalguru/mailserver:1.0.0-rc1
8986```
9087
9188## Setup your Domain and Mailboxes
@@ -112,3 +109,15 @@ You need to execute some further first-time installation steps. Follow the instr
112109The setup of the mailserver is complete now. Feel free to give feedback or report bugs and change requests
113110at the individual components' issue trackers or at this main [ Issue Tracker] ( https://github.com/technicalguru/docker-mailserver/issues ) .
114111
112+ # Customizing the HELM charts
113+
114+ Of course you can change the HELM charts. You will find the sources at GitHub:
115+
116+ > [ https://github.com/technicalguru/helm-repo ] ( https://github.com/technicalguru/helm-repo )
117+
118+ You can easily clone it into your home directory and work from there:
119+
120+ ```
121+ git clone https://github.com/technicalguru/helm-repo.git
122+ ```
123+
0 commit comments