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
1 answer

Variables in Kubernetes ConfigMaps

I'm currently working with some configmaps and I've noticed, that there are some documents in the configmap having redundant values/ referencing the same value e.g. apiVersion: v1 kind: ConfigMap metadata: name: my-configmap labels: app:…
Urr4
  • 611
  • 9
  • 26
0
votes
1 answer

Configmap from chart copy exact structrue

I have the following values.yaml documentStorage: folders: TEST1: permissions: read: "test1@email.com" write: "test1@email.com" TEST2: permissions: read: "test2@email.com" write:…
Manuelarte
  • 1,658
  • 2
  • 28
  • 47
0
votes
1 answer

Ingress-controller redirect to serviceName according to ip addresses

I have an ingress controller and two nginx in one Kubernetes namespace. One service has the name nginx-1 and the second name nginx-2. I need to create a situation where nginx-1 will be default backend, and nginx-2 will be a target for a few IP…
ksmar
  • 31
  • 4
0
votes
1 answer

Kubernetes configmap removes all the contents of existing directory

I have created a configmap and a pod yaml file . I have tried multiple solutions but none worked for me . kubectl describe cm cf3 Name: cf3 Namespace: default Labels: Annotations: Data ==== index.html: ---- hii im…
shubham_asati
  • 623
  • 5
  • 14
0
votes
1 answer

How to use values from a ConfigMap with key/value separated by equal symbol (=)?

Given I have created a ConfigMap with a file like that : VARIABLE1=foo VARIABLE2=bar Is there a way to access those values in Kubernetes or does it have to be in the YAML format?
ZedTuX
  • 2,859
  • 3
  • 28
  • 58
0
votes
0 answers

Kubernetes: update configMap with custom resources

We have an application that needs to read initialization parameters from a file. Now a configMap is used to store these as data and mounted as a volume. However update the configMap will not trigger a rollout update of pods. So I am thinking…
Tony
  • 3
  • 1
0
votes
1 answer

How to read a variable from a file attached as Config map to a pod?

Using Configmaps , I am attaching a text file containing environment variables to a Pod . When I log in to the POD and then run "env" command , I am able to see like below env.txt=var1=123 var2=30000 I am trying to read var1 or var2 . I am unable…
Bala
  • 1,077
  • 5
  • 15
  • 35
0
votes
1 answer

Grafana DataSource created with ''Pattern'' = No Pattern in elasticsearch.yml datasources config file

I am installing Grafana in OpenShift and want to put all our DataSources in a ConfigMap( I can't use the GUI). So far, it all work's good, my config map is being read and Grafana is happy with it. Sort of... I need more... In (GUI) the…
yield
  • 264
  • 4
  • 13
-1
votes
0 answers

How to mount configMap directories from Host in pod in volume mounted?

I have this Spring Boot application which need some files, directories from my host and in kubernetes runtime to resolve those placeholders. Now, i tried to mount volume directly in the pod from my host directory location, but is monted empty dir I…
-1
votes
2 answers

How to get an HTML codes when you make a website in Figma?

Do anyone know how to get the html & CSS when you make websites in Figma? like the actual html codes I tried following a tutorial in Youtube but it did not work. I want to convert my web designs into html codes so I could use it in Visual Studios
-1
votes
1 answer

Spring Boot 3.0.x with Web Flux Security and configmap in k8s leads to errors on boot

We are running a Spring Boot Application in Version 2.7.3 within a k8s cluster (k3s). We are using the package "spring-cloud-starter-kubernetes-client-config" to automatically retrieve the application.yaml from a config map in k8s. This is working…
Sascha Hick
  • 331
  • 1
  • 4
  • 9
-1
votes
1 answer

Can I import more than 15 Grafana customised dashboards without receiving any error using Helm or direct kubernetes?

If i use Helm, I am getting "one or more objects failed to apply", reason Configmap "Grafana-configs" is invalid [metadata.annotations: Too long: must have at most 262144 bytes. []: Too long must have at most 1048576 bytes. If i use Kubernetes to…
Goutham
  • 7
  • 3
-1
votes
1 answer

Kubernetes pods config map detaching file

I am deploying my application using Kubernetes. I need configuration from config maps and i am providing via config map generator as below: configMapGenerator: - name: example files: - app.properties But very often the properties from…
ging
  • 219
  • 7
  • 20
-1
votes
1 answer

Writing back data to a mounted kubernetes volume (configmap or any other type)

I have a configmap that I have mounted onto a pod as a volume and I am able to use its content from inside the pod. Now, I want to write something back to this configmap from inside the pod and I want it to be reflected in the configmap when I check…
codego123
  • 171
  • 2
  • 12
-1
votes
1 answer

configmap is not working for service and loadBalancerIP

I'm used following kubernetes API. Configmap is not working with service and loadbalancer. Here is code - apiVersion: v1 kind: Service metadata: annotations: service.beta.kubernetes.io/azure-load-balancer-resource-group: Resource_group …
Abhi S
  • 19
  • 4
1 2 3
33
34