Term | Definition |
---|---|
operator package | A tgz compressed package containing image files and configuration files |
upload tool | An executable file used to parse the operator package and import/upload it to the platform |
operation machine | The machine used to perform installation operations |
working directory | The directory where the operator package and upload tool are stored |
platform
.From Platform Management
-> Marketplace
-> Upload Packages
, download the upload tool (violet
).
After download, set appropriate permissions for the executable.
Whether importing a new operator or adding a new version to an existing operator, you can use the
violet
tool to complete the task, and the commands are the same.
Execute the following command in the working directory:
violet
tool 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.
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.
If you want to push the operator package to an external image registry, you can use the following parameters:
Parameter | Definition | Example |
---|---|---|
--dst-repo | The address of the target registry | --dst-repo registry.example.com |
--username | The username of the target registry | --username admin |
--password | The password of the target registry | --password ******* |
For example:
If the target image registry uses the plaintext (http) protocol, you need to specify the additional --plain
parameter as follows: