Skip to main content

px pxe login

Saves your Portworx authentication information for the current user in the kubeconfig file for future access of the Portworx system.

Examples:

  # Login to portworx using a secret in Kubernetes
kubectl px pxe login --k8s-secret-name=abc --k8s-secret-namespace=ns

# Login to portworx using a specified token
kubectl px pxe login --auth-token=eyJh...sb30ro

Flags

FlagInput typeDescriptionDefaultRequired
--auth-tokenstringAuth token if any (optional)-Optional
--k8s-secret-namestringKubernetes secret name with the auth token-Optional
--k8s-secret-namespacestringKubernetes namespace containing the secret with the auth token-Optional