Install Operator
TOC
Glossary
Prerequisites
- Prepare an operation machine with Windows, Linux, or macOS that can access the platform. Linux is recommended, and the following instructions will use Linux as an example.
- Ensure the operation machine can access the
platform. - Download the operator package and save it to the working directory on the operation machine.
- Admin privileges are required to install the operator.
Obtaining the Upload Tool
From Platform Management -> Marketplace -> Upload Packages, download the upload tool (violet).
After download, set appropriate permissions for the executable.
Uploading the Operator
Whether importing a new operator or adding a new version to an existing operator, you can use the
violettool to complete the task, and the commands are the same.
Execute the following command in the working directory:
- Run the
violettool to upload the operator package to the platform. <operator-package>: The name of the operator package (Example:operator.4.0.1.ALL.tgz).<platform-address>: The url address of the platform (Example:https://platform.example.com).<platform-username>: The platform username, which requires Platform Administrator privileges.<platform-password>: The platform password.<clusters>: The list of clusters where the operator needs to be uploaded, separated by comma (Example:global,business).
After executing successfully, it will output the following information:
Then go to the platform's Platform Management -> Marketplace -> Upload Packages page,
search for the operator keyword, and then click on the operator name to enter the operator details page.
The details page will display the new version of the operator.
If the status is Uploaded, it indicates that the upload was successful.
Next Steps
After the Operator is uploaded, you can go to the Platform Management -> Marketplace -> Operator Hub page, switch to the target cluster, and then deploy the corresponding Operator.
Troubleshooting
Pushing Package To External Image Registry
If you want to push the operator package to an external image registry, you can use the following parameters:
For example:
If the target image registry uses the plaintext (http) protocol, you need to specify the additional --plain parameter as follows: