Extract Secret

  • Now let's take a look at the secrets in openshift-ingress project. You will need a TLS secret that's generated for your cluster which is of type kubernetes.io/tls.

oc get secrets -n openshift-ingress
  • View the secret values in your command line

oc extract secret/<YOUR-TLS-SECRET-NAME> --to - -n openshift-ingress
  • Save the secret in a temporary directory

oc extract secret/<YOUR-TLS-SECRET-NAME> --to=/tmp -n openshift-ingress

Last updated

Was this helpful?