Setting Up a Helm Repository in Kubernetes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:
Create a  /opt/httpd-root/charts and place the [[Helm_Concepts#Chart_Archive|chart archives]] to be served there. The chart archives can be created with the [[Helm_package|helm package]] command:
Create a  /opt/httpd-root/charts and place the [[Helm_Concepts#Chart_Archive|chart archives]] to be served there. The chart archives can be created with the [[Helm_package|helm package]] command:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
helm package ./my-chart
helm package -u ./my-chart
</syntaxhighlight>
</syntaxhighlight>



Revision as of 21:54, 15 December 2019

Internal

Procedure

Deploy a httpd server in Kubernetes, as described here:

Deploy a httpd Server in Kubernetes

For the purpose of this example, the HTTP server serves files from /opt/httpd-root.

Create a /opt/httpd-root/charts and place the chart archives to be served there. The chart archives can be created with the helm package command:

helm package -u ./my-chart

Generate (or refresh) the repository's index.yaml file with helm repo index:

cd .../charts
helm repo index .