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
| Flag | Input type | Description | Default | Required |
|---|---|---|---|---|
--auth-token | string | Auth token if any (optional) | - | Optional |
--k8s-secret-name | string | Kubernetes secret name with the auth token | - | Optional |
--k8s-secret-namespace | string | Kubernetes namespace containing the secret with the auth token | - | Optional |