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

  • The Application Management for Cluster Federation extension must be installed and enabled on the KubeSphere platform.

  • You need to join a federated project and have the Federated Project Management permission in the corresponding workspace.

Steps

  1. Log in to the KubeSphere web console as a user with Federated Project Management permissions and enter your federated project.

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

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

  4. 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.