Search code examples
dockerkuberneteskubernetes-helm

Build and Deploy Multiple Docker images to kubernetes


I have an application such as below structure which multiple services has their own Dockerfile.ı would like to deploy my application via Jenkins using Helm to kubernetes but I can not decide what is the best way to handle this?

Should I try to use multi-stage builds if yes how can I handle this? Should I create two helm charts for each of them or any way to handle this with one helm chart?

└── app-images-dashboard
    ├── Readme.md
    ├── cors-proxy
    │   ├── Dockerfile
    │   ├── lib
    │   │   ├── cors-anywhere.js
    │   │   ├── help.txt
    │   │   ├── rate-limit.js
    │   │   └── regexp-top-level-domain.js
    │   ├── package.json
    │   └── server.js
    └── app-images-dashboard
        ├── Dockerfile
        ├── components
        │   └── image_item.js
        ├── images
        │   └── beta.png
        ├── index.html
        ├── main.js
        └── stylesheets
            └── style.css

Solution

  • A helm chart represent a whole application. You have 1 application with 2 slices. So you need only 1 helm chart.