HiveBrain v1.2.0
Get Started
← Back to all entries
snippetdockerMinor

How to structure/combine the installation of helm + deployment files

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
thecombineinstallationfilesstructurehelmhowdeployment

Problem

I have a Wordpress Helm chart, and a seperate ingress definition to go along with it, which I specified in a wordpress-deployment.yaml file.

My workflow for installing would be:

  • Install the helm chart using a wordpress-values.yaml file for values



  • Apply the wordpress-deployment.yaml deployment file using kubectl



I don't like that these steps are separated (e.g. what if I forget about installing the Helm chart?)

I would like to use K8S in a professional setting. What would be the "best practice" way of going about this kind of file structure? Is there a more structured / less manual way of handling this? Ideally I would like to run 1 command which handles both installing helm charts & the accompanying deployment files & configurations.

Thanks in advance!

Solution

Helm supports sub charts.

You could make your ingress yaml file into its own helm chart.

You could then make a base chart then put both of your charts in it as subcharts. (Or have one of your charts as the "Main chart" and another as a subchart.)

Context

StackExchange DevOps Q#14719, answer score: 1

Revisions (0)

No revisions yet.