Create a secret to use with cluster repositories.

Prerequisites

Log in to the Tanzu Mission Control console, as described in Log In to the Tanzu Mission Control Console.

Make sure you have the appropriate permissions to create a cluster secret.
  • To create a cluster secret, you must be associated with the cluster.edit role.
  • To create a Kubernetes secret for a cluster group, you must be associated with the clustergroup.edit role.

Procedure

  1. In the Tanzu Mission Control console, navigate to the cluster or cluster group for which you want to create a secret.
  2. On the detail page, click the Add-ons tab.
  3. Click Kubernetes secrets in the Secrets section of the Add-ons menu.
  4. Click Create Kubernetes Secret.
  5. Enter a name for the secret.
  6. Select the namespace in which to create the secret from the dropdown list.
  7. Select the type of secret to create, and then enter the details for the secret.
    • For an opaque secret, enter one or more key value pairs.
    • For a registry secret:
      1. Enter the URL for the registry.
      2. Enter a valid username and password for the registry URL.
  8. Click Create.
    Tanzu Mission Control generates the secret.
  9. Click Next.
  10. You can optionally click the toggle to make the secret available to all namespaces in the cluster.
  11. To see the contents of the secret, click View YAML.
  12. Click Finish.
    When you click Finish, Tanzu Mission Control applies the secret to your cluster in the specified namespace, and directs you to the Secrets tab of the detail page where you can see the new secret in the table.