Questions tagged [configmap]

ConfigMaps allow you to decouple configuration artifacts from image content to keep containerized applications portable.

ConfigMaps bind configuration files, command-line arguments, environment variables, port numbers, and other configuration artifacts to your Pods' containers and system components at runtime. ConfigMaps allow you to separate your configurations from your Pods and components, which helps keep your workloads portable, makes their configurations easier to change and manage, and prevents hardcoding configuration data to Pod specifications.

ConfigMaps are useful for storing and sharing non-sensitive, unencrypted configuration information. To use sensitive information in your clusters, you must use Secrets.

Documentations

503 questions
-1
votes
2 answers

How to set array structure property in env for k8s?

To define clients in secret to store client name and password, how to define a client array in env and secret to store these data? It should be like this in application.yml: app: clients: client1: password1 client2: password2 …
zm999999
  • 23
  • 1
  • 3
-1
votes
2 answers

How can I put multi configmap in the same mount path in kubernetes?

I have two python files, testing_1.py and testing_2.py. Then, I have created the configmap with testing-config1 to store testing_1.py and testing-config2 to store testing_2.py respectively. In Kubernetes yaml, ... containers: - name:…
Hong
  • 365
  • 4
  • 14
-1
votes
1 answer

Pods were terminated due to crashloopback

When getting the logs from rancher some of my pods in Kubernetes were terminated due to crashloopbackoff. How can I fix it ??. Attaching some screenshots for reference. [![enter image description here][1]][1]
Riby Varghese
  • 101
  • 1
  • 9
-1
votes
1 answer

Load contents of yml as configmap in k8s using helm

Is it possible to load the contents of yml as configamp in k8s using Helm Charts? Helm Chart for ConfigMap {{- define "common.configmap.tpl" -}} kind: ConfigMap apiVersion: v1 {{ template "common.metadata" . }} namespace: {{ .Values.namespace |…
Sunil Gajula
  • 1,117
  • 2
  • 14
  • 30
-1
votes
1 answer

Multi profile config map is not properly injected to container

New to k8s. My configmap looks like apiVersion: v1 kind: ConfigMap metadata: name: example-configmap-overriding-new-01 data: application.properties: | globalkey = global key value TeamName = Team Name value #Some…
-2
votes
1 answer

How would I assign ConfigMap to a pod that is already running?

I cannot get a ConfigMap loaded into a pod that is currently running nginx. I tried by creating a simple pod definition and added to it a simple read ConfigMap shown below: apiVersion: v1 kind: Pod metadata: name: testpod spec: containers: -…
mac
  • 1,479
  • 3
  • 11
  • 21
-2
votes
2 answers

Use specific key from json file in configmap as Environment variable

I'm running a k8s cluster where I have a configmap with a json file in it. kubectl describe cm my-cmap Name: my-cmap Namespace: default Labels: Annotations: Data ==== mydataJson: ---- { key1 : value1, key2 :…
Dhanuj Dharmarajan
  • 436
  • 1
  • 3
  • 10
1 2 3
33
34