Import a Helm Repository
To create a repository, you use an HTTP/HTTPS server or object storage solutions to store packages. More specifically, an app repository relies on external storage independent of OpenPitrix, such as MinIO object storage, , and AWS object storage. These object storage services are used to store configuration packages and index files created by developers. After a repository is registered, the configuration packages are automatically indexed as deployable applications.
This tutorial demonstrates how to add an app repository to KubeSphere.
- You need to enable the .
- You need to have an app repository. Refer to the official documentation of Helm to create repositories or . Alternatively, use the example repository in the steps below, which is only for demonstration purposes.
- You need to create a workspace and a user (). The user must be granted the role of
workspace-admin
in the workspace. For more information, refer to Create Workspaces, Projects, Users and Roles.
Add an App Repository
In the dialog that appears, specify an app repository name and add your repository URL. For example, enter
https://charts.kubesphere.io/main
.URL: Follow the RFC 3986 specification with the following three protocols supported:
- S3: The URL is S3-styled, such as for the access to Amazon S3 services using the S3 interface. If you select this type, you need to provide the access key and secret.
- HTTP: For example,
http://docs-repo.gd2.qingstor.com
. The example contains a sample app NGINX, which will be imported automatically after the repository is created. You can deploy it from app templates.
Description: Give a brief introduction of main features of the app repository.
After you specify required fields, click Validate to verify the URL. You will see a green check mark next to the URL if it is available and click OK to finish.
Note
In an on-premises private cloud environment, you can build your own repository based on ChartMuseum. Then, you develop and upload applications to the repository and deploy them on KubeSphere for your own needs.