I
I
Ivan Vekov2021-12-20 13:10:01
Compact disc
Ivan Vekov, 2021-12-20 13:10:01

Deploy Helm Applications via Bitbucket Pipelines - How?

Hello!

I will describe what we have:

1. Several microservices. Everyone lives through their own repository, they are united by only one workspace in the bitbucket. Each has its own pipeline of assembly, testing and packaging in a docker image, sending to the registry.
2. Helm chart, sits in a separate repo, but in the same workspace. There, a chart is simply described, where the very docker images from the first paragraph are indicated.
3. Cluster on a separate piece of hardware (now the minicube is standing at all)

What I want:
So that when a repository with a helm-chart changes in the master branch, it gets ready and leaves to update the cluster.

What is the problem:
1. I do not understand how to implement it. After all, the runner is launched outside the cluster and the banal helm upgrade will not do anything.
2. It occurred to me to connect from the runner via ssh to the cluster and run git pull && helm upgrade on it. But this seems like the wrong decision.

All searches take me away from the helm to the usual kubetcl -f apply. But why then does the helm exist?)
In general, please tell me how to send your helm chart to the cluster or where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Karasik, 2021-12-20
@vitaly_il1

As far as I understand, you want something in the style of GitOps.
Look at ArgoCD and Flux.
https://thenewstack.io/gitops-on-kubernetes-decidi...
https://github.com/microtica/gitops-resources
https://medium.com/containers-101/using-helm-with-. .. - with examples.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question