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. 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
upload tool
to complete the task, and the commands are the same.
Execute the following command in the working directory:
The main parameters are as follows:
Parameter | Definition | Example |
---|---|---|
<operator-package> | The name of the operator package | operator.v3.18.0-beta.93.g691b79c3.tgz |
<platform-address> | The access address of the platform | https://platform.example.com |
<platform-username> | The platform username, which requires Platform Administrator privileges | admin |
<platform-password> | The platform password | ******** |
<clusters> | The list of clusters where the operator needs to be uploaded, separated by commas if multiple | global,business |
If you see the following output after execution, it indicates that the upload was successful:
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 need to upload images to a specified registry during the upload process, you can use the following three 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 ******** |
Example command:
If the target image registry uses the http protocol, you need to specify the additional --plain
parameter as follows:
Use the following command to view all parameters of the violet push command: