This section describes how to edit the settings of a Secret.

You can edit the data of a Secret. KubeSphere does not support editing the type of a Secret.

Prerequisites

You need to join a project and have the Secret Management permission in the project. For more information, see Project Members and Project Roles.

Steps

  1. Log in to the KubeSphere web console with a user who has Secret Management permissions and enter your workspace.

  2. Click Configuration > Secret in the left navigation pane.

  3. Select a project from the drop-down list in the upper left corner of the page.

  4. On the right side of the Secret you want to edit, click more, and then select Edit Settings from the dropdown list.

  5. In the Edit Settings dialog box, set the data for the Secret according to its type, and then click OK.

    • For a Secret of type Default, configure the following parameters:

      Parameter Description

      Data

      Set user-defined key-value pair data.

      • Click Add Data to set key-value pair data.

      • Hover over an existing data entry, then click pen on the right to edit the data entry.

      • Hover over an existing data entry, then click trash-light on the right to delete the data entry.

    • For a Secret of type TLS, configure the following parameters:

      Parameter Description

      Certificate

      TLS certificate.

      Private Key

      TLS private key.

    • For a Secret of type Image Registry, configure the following parameters:

      Parameter Description

      Registry Address

      The address of the image registry. Click the dropdown list to select HTTP or HTTPS protocol.

      Username

      The username for accessing the image registry.

      Email

      The email of the user for accessing the image registry.

      Password

      The password for accessing the image registry.

      • Click Verify to check if the password is correct.

      • Click eye/eye-closed to show/hide the password in plain text.

      Data

      Key-value pair data for accessing the image registry.

    • For a Secret of type Username and Password, configure the following parameters:

      Parameter Description

      Username

      User-defined username.

      Password

      User-defined password. Click eye/eye-closed to show/hide the password in plain text.