How do I view the Kubernetes secret content?

Purpose

Perform this procedure to show a description of each Kubernetes secret in an NSP cluster.

Steps
 

Log in as the root or NSP admin user on the NSP deployer host.


Open a console window.


Enter the following:

cd /opt/nsp/NSP-CN-DEP-release-ID/bin ↵


Enter the following:

./nspdeployerctl secret describe ↵

The content of each secret is displayed; the following example shows the output for one secret:

Secret: secret_name

  secret_desctription

Namespaces: associated_namespaces

Status: status

Immutable: no

Content:

  tls.key,tls.crt (cert_type CA key pair), type=cacert(days=365), status=status

  tls.key (cert_type CA private key), type=file, value=<prompted>, status=status

  tls.crt (cert_type CA certificate), type=file, value=<prompted>, status=status

The status reads active unless the secret is deleted, in which case the status reads inactive.


View the secrets, as required.


Close the console window.

End of steps