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
0
votes
2 answers

Kubernetes/Helm: sharing a single not properties file between Init and Main containers

In a kubernetes (minikube) / helm env I have an ldif file I want to share on a volume between an Init container and a normal one. I don't want to share the entire folder in which this file is stored. Unfortunately from my understanding this is not…
0
votes
1 answer

Replacing Existing Value with new Value in Script Kubernetes

I build a Docker Image and use COPY xyz.sh /bin/ The xyz.sh file contains 1000+ lines of code and one of the line is Host:xyz.com I used this Image in K8s. Now I want to change the Host Value in xyz.sh file. I don't want to Create a ConfigMap of…
Ankit Singh
  • 117
  • 3
  • 9
0
votes
2 answers

Parameterize grafana.ini inside a configmap

I have a grafana dashboard running in a kubernetes cluster which is configured. yaml via a ConfigMap to use Azure AD to restrict access. I would now like to parameterize the grafana.ini in that configmap so i can use different subdomains in my…
0
votes
1 answer

Why do comments in the yaml for Kubernetes ConfigMap count towards the unofficial 1 MB size limit?

Looking at Kubernetes ConfigMap size limitation and https://github.com/kubernetes/kubernetes/issues/19781, the size limit for ConfigMap resources in Kubernetes seems to be 1 MB due to etcd restrictions. However, why do comments in the YAML for one's…
RochesterinNYC
  • 660
  • 6
  • 7
0
votes
2 answers

Extracting configmaps from services in kubernetes cluster using a spring microservice

We are trying to get live configuration data from our kubernetes cluster. Therefore we would like to read the configmaps from each of our services. Is there a way to exctract this data with a spring microservice which runs alongside the rest of the…
famabenda
  • 80
  • 1
  • 13
0
votes
0 answers

Helm Configmap Template: Cannot add quotes to values in template

Here is my file in configfiles folder config.tmpl: my config map template: apiVersion: v1 kind:…
0
votes
1 answer

Synchronize application.properties when deploying in kubernetes

I would like to know what is the best practice of synchronizing our application.properties in our deployment in kubernetes with our git repository. Every time there is a change in application.properties in our git repo, we need to manually update…
aeycee
  • 167
  • 2
  • 2
  • 14
0
votes
1 answer

How to specify a directory in ConfigMap that is located with in a docker container running on Kubernetes?

I'm working in a setup where I have a docker container running airflow deployed on Kubernetes. What I'm trying to do is package the dags definition file with the docker container that contains the airflow installation (for versioning purposes), and…
0
votes
2 answers

How to create kubernetes configmap from properties file during maven build?

We have an old java application which has few properties files. We are doing a POC to deploy it in Kubernetes cluster using Helm chart. As of now, we manually creating configmap by copying the content from properties file. If any updates in…
Raj
  • 103
  • 9
0
votes
0 answers

Spring Cloud Kubernetes fails setting ConfigMap values

I am trying to support K8s ConfigMap API using Spring to handle my externalized configuration. I've been using a configuration service without any issues, so I don't believe it is a cloud-config implementation problem. I am using version…
user0000001
  • 2,092
  • 2
  • 20
  • 48
0
votes
2 answers

How to run binary using kuberneates config-map

I used config map with files but i am experimenting with portable services like supervisor d and other internal tools. we have golang binary that can be run in any image. what i am trying is to run these binary using configmap. Example :- We have…
Yuvraj
  • 66
  • 2
  • 9
0
votes
2 answers

How to name datafield in CoreDNS ConfigMap configuration

I have configured coreDNS to point to an external DNS server for all *.mydomain.com requests with this yaml apiVersion: v1 kind: ConfigMap metadata: name: coredns-custom namespace: kube-system data: test.server: | mydomain.com:53 { …
InsOp
  • 2,425
  • 3
  • 27
  • 42
0
votes
2 answers

error converting YAML to JSON: yaml: did not find expected key

I copy pasted a configMap file from an online tutorial and an error popped while trying to apply it. this is the file: apiVersion: v1 kind: ConfigMap metadata: name: nginx-config labels: tier: backend data: …
marwa karaki
  • 51
  • 2
  • 8
0
votes
0 answers

How to fix environment variables not being picked up in a .json file

I am setting environment variables in k8s through a configMap. Also creating a generate.json file and mounting it via a configMap also. All this works fine. The problem is that the env vars are not being picked up by generate.json file. I am trying…
Shammir
  • 927
  • 4
  • 17
  • 32
0
votes
1 answer

get [error: json: unknown field “metadata” ] error when I follow tutorial of kubernetes

I followed this tutorial https://kubernetes.io/docs/tutorials/configuration/configure-redis-using-configmap/ I got the error as bellow when I try to create the pods kubectl apply -k . error: json: unknown field "metadata" My kubectl version is as…
wanghaoming
  • 117
  • 1
  • 1
  • 8