Adding the internal Helm repository to Helm CLI
The internal Helm repository named
local-charts can now be added to the Helm CLI as an external repository.
local-charts can be used as a source to install charts into the cluster from Helm CLI.
cluster_CA_domainas an alias in the
/etc/hostsfile which points to the cluster IP:
vi /etc/hosts # Add a line like the following: 22.214.171.124 mycluster.icp
Import and trust the certificates for the cluster.
Make sure HELM_HOME is defined to point to the Helm work directory (usually
~/.helm) by entering the following command:
Initialize the Helm CLI by entering the following command:
helm init --client-only
Log on to the IBM® Cloud Private cluster by entering the following command:
cloudctl login -a https://mycluster.icp:8443 --skip-ssl-validation
When the last output statement from the
cloudctl logincommand reads that it configured Helm successfully, the certificates were copied to the HELM_HOME directory. Note: If you cannot log on to cluster, see Accessing your cluster from the kubectl CLI for information about how to configure the CLI.
Enter the following command to define the
local-chartsrepository to the Helm CLI and specify the certificates that you copied in the previous step:
sudo helm repo add local-charts https://mycluster.icp:8443/helm-repo/charts --ca-file $HELM_HOME/ca.pem --cert-file $HELM_HOME/cert.pem --key-file $HELM_HOME/key.pem
These certificates are used when you add the internal IBM Cloud Private
local-chartsHelm repository that is managed by the
You can enter the following command to add the internal IBM Cloud Private Helm repository called
mgmt-chartsthat is managed by the
sudo helm repo add mgmt-charts https://mycluster.icp:8443/mgmt-repo/charts --ca-file $HELM_HOME/ca.pem --cert-file $HELM_HOME/cert.pem --key-file $HELM_HOME/key.pem
Tip: It is not generally required to add the
mgmt-chartsrepository. It contains the Helm charts for IBM Cloud Private internal services and features.
Verify that the repositories are accessible to the Helm CLI by entering the following command:
helm repo list