DEV Community

Discussion on: Understanding Kubernetes: part 5 – Configmaps

Collapse
 
jouo profile image
Jashua

Excuse me Aurélie, I've only ever seen examples of using the Configmap for environment values, is it possible to use Configmap values somewhere else? (say port, image, labels, etc)

Collapse
 
aurelievache profile image
Aurélie Vache

Imagine you have an app which needed a configuration file (configuration.properties). In this conf file you have properties like an url, a port, an username..

When the app started it load the conf

You can use ConfigMap which embed this conf file and then link the ConfigMap to your pod.

Collapse
 
aurelievache profile image
Aurélie Vache

If you want to tell to kubernetes which container image tag to run, use Kustomize for example