Create Secrets
This section explains how to create Secrets.
Prerequisites
-
Application Management for Cluster Federation should have been installed and enabled.
-
You should join a multi-cluster project and have the Federated Project Management permission within the project.
Steps
-
Log in to the KubeSphere web console with a user who has the Federated Project Management permission, and access your multi-cluster project.
-
Click Configuration > Secrets in the left navigation pane.
-
Click Create on the page.
-
On the Basic Information tab, set the basic information for the Secret, and then click Next.
Parameter Description Name
The name of the Secret. The name can only contain lowercase letters, numbers, and hyphens (-), must start and end with a lowercase letter or number, and can be up to 63 characters long.
Alias
The alias of the Secret. Aliases can be the same for different Secrets. The alias can only contain Chinese characters, letters, numbers, and hyphens (-), cannot start or end with a hyphen (-), and can be up to 63 characters long.
Project
The project to which the Secret belongs.
Description
The description of the Secret. The description can contain any characters and can be up to 256 characters long.
-
On the Data Settings tab, select the data type of the Secret from the Type dropdown list.
Type Description Default
Used to store user-defined data.
TLS information
Used to store TLS certificates and private keys.
Image registry information
Used to store the address, username, email, and password of an image registry.
Username and password
Used to store usernames and passwords.
-
On the Data Settings tab, set the data for the Secret based on its type, and then click Create.
-
For the Default type of Secret, set the following parameters:
Parameter Description Data
Set key-value pairs.
-
Click Add Data to add a key-value pair.
-
Hover over the created pair, then click on the right to edit the pair.
-
Hover over the created pair, then click on the right to delete the pair.
-
-
For the TLS information type of Secret, set the following parameters:
Parameter Description Certificate
TLS certificate.
Private Key
TLS private key.
-
For the Image registry information type of Secret, set the following parameters:
Parameter Description Registry Address
Address of the image registry. Click the dropdown list to choose either HTTP or HTTPS protocol.
Username
Username for accessing the image registry.
Email
Email of the user accessing the image registry.
Password
Password for accessing the image registry.
-
Click Validate to check if the password is correct.
-
Click / to show/hide the password.
Data
Key-value pair for accessing the image registry.
-
-
For the Username and password type of Secret, set the following parameters:
Parameter Description Username
User-defined username.
Password
User-defined password. Click / to show/hide the password.
Once the Secret is created, it will be displayed in the list of Secrets.
-
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.