Environment Variables
Environment Variables provide another way to specify your credentials. This is the recommended method when scripting tasks or when creating Preview Environments.
The supported environment variables are:
OKTETO_TOKEN
: Specifies the Personal Access Token or Admin Access Token to use (Required)OKTETO_CONTEXT
: Specifies the Okteto URL. If missing, it defaults to https://okteto.example.com (Required)OKTETO_NAMESPACE
: Specifies the Namespace to use. If missing, it defaults to the Namespace of the current context (Optional)
tip
You can use the .env
file to store your credentials. See Okteto Variables to learn more.