
How do I attach a configmap to a deployment in Kubernetes?
Feb 10, 2022 · You're trying to place the value of your configmap into an environment variable. First, have you created a configmap? Can you show us the corresponding manifest? Second, …
kubernetes - Kubectl update configMap - Stack Overflow
Here's a neat way to do an in-place update from a script. The idea is; export the configmap to YAML (kubectl get cm -o yaml) use sed to do a command-line replace of an old value with a …
How can I use a json file in my configmap.yaml (Helm)?
Nov 3, 2020 · My configmap.yaml and deployment.yaml are both kept in /chart/templates but I keep my-config.json within the base helm chart directory, outside of the templates folder.
kubernetes: How to create and use configmap from multiple files
kubectl describe configmaps game-config-2 Name: game-config-2 Namespace: default Labels: <none> Annotations: <none> Data ==== game.properties: 158 bytes ui.properties: 83 bytes …
Azure kubernetes - python to read configmap? - Stack Overflow
Oct 9, 2020 · I am trying to Dockerize the python application and want to read the configuration settings from the configmap. How do I read configmap in python?
Is there a way to share a configMap in kubernetes between …
Apr 4, 2019 · Inside each one of this namespaces we have several configMaps and secrets but there are a lot of share variables between the two environments so we will like to have a …
When should I use envFrom for configmaps? - Stack Overflow
Feb 24, 2021 · When one of your teammate needs to add a new feature flag for example, simply adding it to the configmap is enough to enable it on all your deployments. In an other hand, if …
When to use Secrets as opposed to ConfigMaps in Kubernetes?
Apr 8, 2024 · So we supply our containers with a ConfigMap yaml with all the non secret values, and a Secret yaml with the secret values, then use this to merge them and present as a single …
How to patch a ConfigMap in Kubernetes - Stack Overflow
Feb 7, 2019 · Kubernetes ships with a ConfigMap called coredns that lets you specify DNS settings. I want to modify or patch a small piece of this configuration by adding: apiVersion: v1 …
Populate ConfigMap by importing data from file in k8s
Mar 25, 2018 · I have a requirement where i push bunch of key value pairs to a text/json file. Post that, i want to import the key value data into a configMap and consume this configMap within a …