All Products
Document Center

Create a secret

Last Updated: Feb 12, 2018

You can create a secret in the Container Service console.


The secret and the application using this secret must be in the same cluster.


  1. Log on to the Container Service console.

  2. Click Clusters under Swarm in the left-side navigation pane.

  3. Click Manage at the right of the cluster.


  4. Click Secrets in the left-side navigation pane.

  5. Click Create at the upper-right corner of the page.


  6. Enter the secret name and value. Then, click OK.

    The name can contain uppercase letters, lowercase letters, numbers, hyphens (-), and underscores (_). The name must start and end with a letter (either in uppercase or lowercase) or a number, and cannot exceed 64 characters in length.