Loading k8s/helm/deploy.yml +3 −6 Original line number Diff line number Diff line Loading @@ -6,11 +6,7 @@ include: extends: .kube-context variables: DEFAULT_ARGS: > --install --create-namespace --dependency-update --atomic --wait-for-jobs --install --create-namespace --dependency-update --atomic --wait-for-jobs --render-subchart-notes EXTRA_ARGS: "" script: Loading @@ -31,7 +27,8 @@ include: EXTRA_ARGS=${EXTRA_ARGS} NAMESPACE=${NAMESPACE:=default}" - helm repo add ${REPO_NAME} ${REPO_URL} - helm template ${REPO_NAME} ${CHART} ${VALUES_ARG} --namespace ${NAMESPACE:=default} --output-dir rendered - helm template ${REPO_NAME} ${CHART} ${VALUES_ARG} --namespace ${NAMESPACE:=default} --output-dir rendered - | if [ "${CI_COMMIT_BRANCH}" = "${CI_DEFAULT_BRANCH}" ]; then helm upgrade ${DEFAULT_ARGS} --namespace ${NAMESPACE:=default} ${RELEASE} ${CHART} ${VALUES_ARG} ${EXTRA_ARGS} Loading k8s/helm/readme.md +6 −4 Original line number Diff line number Diff line ## Deploying a helm release Create a folder named as your deployment. The following example deploys `cert-manager`. Create a folder named as your deployment. The following example deploys `cert-manager`. ```shell repo-root Loading @@ -10,7 +11,8 @@ repo-root └── job.yaml ``` In that `job.yaml` add the following content. Ensure the name of the job equals the name of the subfolder. In that `job.yaml` add the following content. Ensure the name of the job equals the name of the subfolder. ```yaml --- Loading @@ -29,8 +31,8 @@ deployment-name: Optionally add a `values.yaml` in that directory. When you've added all your releases to the cluster management repository, add the following to your `.gitlab-ci.yml`: When you've added all your releases to the cluster management repository, add the following to your `.gitlab-ci.yml`: ```yaml --- Loading Loading
k8s/helm/deploy.yml +3 −6 Original line number Diff line number Diff line Loading @@ -6,11 +6,7 @@ include: extends: .kube-context variables: DEFAULT_ARGS: > --install --create-namespace --dependency-update --atomic --wait-for-jobs --install --create-namespace --dependency-update --atomic --wait-for-jobs --render-subchart-notes EXTRA_ARGS: "" script: Loading @@ -31,7 +27,8 @@ include: EXTRA_ARGS=${EXTRA_ARGS} NAMESPACE=${NAMESPACE:=default}" - helm repo add ${REPO_NAME} ${REPO_URL} - helm template ${REPO_NAME} ${CHART} ${VALUES_ARG} --namespace ${NAMESPACE:=default} --output-dir rendered - helm template ${REPO_NAME} ${CHART} ${VALUES_ARG} --namespace ${NAMESPACE:=default} --output-dir rendered - | if [ "${CI_COMMIT_BRANCH}" = "${CI_DEFAULT_BRANCH}" ]; then helm upgrade ${DEFAULT_ARGS} --namespace ${NAMESPACE:=default} ${RELEASE} ${CHART} ${VALUES_ARG} ${EXTRA_ARGS} Loading
k8s/helm/readme.md +6 −4 Original line number Diff line number Diff line ## Deploying a helm release Create a folder named as your deployment. The following example deploys `cert-manager`. Create a folder named as your deployment. The following example deploys `cert-manager`. ```shell repo-root Loading @@ -10,7 +11,8 @@ repo-root └── job.yaml ``` In that `job.yaml` add the following content. Ensure the name of the job equals the name of the subfolder. In that `job.yaml` add the following content. Ensure the name of the job equals the name of the subfolder. ```yaml --- Loading @@ -29,8 +31,8 @@ deployment-name: Optionally add a `values.yaml` in that directory. When you've added all your releases to the cluster management repository, add the following to your `.gitlab-ci.yml`: When you've added all your releases to the cluster management repository, add the following to your `.gitlab-ci.yml`: ```yaml --- Loading