This plugin loads Kubernetes ConfigMap, Secret and String Data values as environment variables in an IntelliJ run configuration. This allows for development of Kubernetes deployable modules without the need to run Kubernetes on local development environments which may not have enough resources.
Branch | IntelliJ |
---|---|
1.0.x | 2018+ |
1.1.x | 2019.1 |
1.2.x | 2019.2, 2019.3, 2020.x |
- Using intelliJ plugin management on Windows:
- File -> Settings -> Plugins -> Marketplace -> Search for "Kubernetes" or "Runtime Configuration" -> Install Plugin
- Using intelliJ plugin management on MacOS:
- Preferences -> Settings -> Plugins > Marketplace -> Search for "Kubernetes" or "Runtime Configuration" -> Install Plugin
Restart intelliJ.
- Run -> Edit Configurations
- Select or create a new configuration
- K8s Config tab
- Enable enables or disables variable injection for a config
- Add Kubernetes ConfigMap or Secret configuration files
- Apply or Ok
During run configuration execution, configuration files will be parsed in list order and their values injected as environment variables to the executing module. Configuration files should be ordered in the order they are consumed within deployments from generic to specific. Configuration keys with matching names in specific files will override previous values exactly as the would during a Kubernetes deployment