Component Repository
A Helm Chart Repository is required to release own Service Project (Component) Helm Charts, which must meet the following requirements:
The chart repository must not be helm-oci based
The chart repository must contain an
index.yamlfile, see Helm Chart Repository.The chart repository must be available from the cluster via
HTTPSand has a proper certificate (not self-signed)
Examples for supported Helm Chart Repositories are:
ChartMuseum Repository Server
GitLab Package Registry
Sonatype Nexus Helm Chart Repository
Example - Install Steps ChartMuseum Helm Chart
Download helm chart from ChartMuseum ArtifactHub
Extract the contents of the file chartmuseum-3.6.2.tgz
tar -xvf chartmuseum-3.6.2.tgzEdit the following values in the values.yaml file
BASIC_AUTH_USER set the username you'd like to use.BASIC_AUTH_PASS set the password you'd like to use.storageClass set the storage class you'll be using.Create a project on openshift
oc new-project chartmuseumDeploy the helm chart
helm install chartmuseum . -n chartmuseum -f values.yamlCreate following Route for the chartmuseum service:
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: chartmuseum
namespace: chartmuseum
spec:
host: chartmuseum.<YOUR_HOST_DOMAIN>
to:
kind: Service
name: chartmuseum
weight: 100
port:
targetPort: http
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None