Skip to content

IntelliJ plugin for loading Kubernetes configuration properties as environment variables in an Intellij run configuration.

License

Notifications You must be signed in to change notification settings

egoshard/intellij-k8s-runtime-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IntelliJ Kubernetes RunConfiguration

IntelliJ Plugin Repository

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.

Version Compatibility

Branch IntelliJ
1.0.x 2018+
1.1.x 2019.1
1.2.x 2019.2, 2019.3, 2020.x

Plugin Installation

  • 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.

Usage

  • 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