Add or override environment variables
Oftentimes, while developing a service, you might need to add an environment variable or update an existing one.
Velocity enables you to add or update environment variables for services running in Kubernetes directly from your IDE. This saves you the effort of having to update your Kubernetes Deployment definition and redeploy manually.
With Velocity you can:
Add env vars
Navigate to Edit Configurations... ; for the relevant configuration, click the Target tab.
Click + to add the relevant variable to the Environment variables table, similar to the following:
Click Apply to save your changes.
Use an .env
file
.env
fileFollowing is the structure for an .env file for Velocity:
To add an env file to your configuration:
Navigate to Edit Configurations... and for the relevant configuration, choose the Target tab.
Choose Use .env file and then click to navigate and add the relevant file:
Click Apply to save your changes.
Whenever you update the environment file, restart your Velocity session to ensure the changes are applied.
Last updated