Setting Up a Helm Repository in Kubernetes: Difference between revisions
Jump to navigation
Jump to search
(8 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[Helm_Repositories#Repository_Operations|Helm Repositories]] | * [[Helm_Repositories#Repository_Operations|Helm Repositories]] | ||
* [[Helm_Operations#Repository_Commands|Helm Operations]] | * [[Helm_Operations#Repository_Commands|Helm Operations]] | ||
* [[Httpd Deploy in Kubernetes|Deploy a httpd Server in Kubernetes]] | |||
=Procedure= | =Procedure= | ||
Deploy a httpd server in Kubernetes, as described | Deploy a httpd server in Kubernetes, as described here: {{Internal|Httpd Deploy in Kubernetes|Deploy a httpd Server in Kubernetes}} | ||
< | For the purpose of this example, the HTTP server serves files from /opt/httpd-root. | ||
index. | |||
</ | 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'> | |||
helm package -d .../charts -u ./my-chart | |||
</syntaxhighlight> | |||
Generate (or refresh) the repository's [[Helm_Repositories#index.yaml|index.yaml]] file with [[Helm_repo#Generate_an_Index_File|helm repo index]]: | |||
<syntaxhighlight lang='bash'> | |||
cd .../charts | |||
helm repo index . | |||
</syntaxhighlight> | |||
At this point, the repository is ready to serve the chart that has been placed in the repository. |
Latest revision as of 21:56, 15 December 2019
Internal
Procedure
Deploy a httpd server in Kubernetes, as described here:
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 -d .../charts -u ./my-chart
Generate (or refresh) the repository's index.yaml file with helm repo index:
cd .../charts
helm repo index .
At this point, the repository is ready to serve the chart that has been placed in the repository.