Publish Helm charts for your users or organization.
To work with the Helm Chart registry use a lkar
or simple HTTP client like curl
.
Placeholder | Description |
---|---|
image |
The oci image used as backend. |
username |
The repository user. |
password_or_token |
The repository password or token. |
Publish a package by running the following command:
If the registry is private, start by log in the registry:
lkar login artifact-registry.example.org
lkar login artifact-registry.example.org/<image>
lkar login helm.example.org
lkar login helm.example.org/<image>
You can then publish a chart by running the following command:
lkar helm push artifact-registry.example.org path/to/file.tgz
lkar helm push artifact-registry.example.org/<image> path/to/file.tgz
lkar helm push helm.example.org path/to/file.tgz
lkar helm push helm.example.org/<image> path/to/file.tgz
To publish a helm Chart, perform an HTTP PUT
operation with the package content in the request body.
curl --user <username>:<password_or_token> -X PUT --upload-file path/to/file.tgz https://artifact-registry.example.org/helm/push
curl --user <username>:<password_or_token> -X PUT --upload-file path/to/file.tgz https://artifact-registry.example.org/helm/<image>/push
curl --user <username>:<password_or_token> -X PUT --upload-file path/to/file.tgz https://helm.example.org/push
curl --user <username>:<password_or_token> -X PUT --upload-file path/to/file.tgz https://helm.example.org/<image>/push
To install a Helm char from the registry, start by adding the repository to your Helm client:
helm repo add --username <username> --password <password> example https://artifact-registry.example.org/helm
helm repo add --username <username> --password <password> example https://artifact-registry.example.org/helm/<image>
helm repo add --username <username> --password <password> example https://helm.example.org
helm repo add --username <username> --password <password> example https://helm.example.org/<image>
You can then install a chart by running the following command:
helm repo update
helm install my-chart example/my-chart