Editing Kubernetes ConfigMaps

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
A <code>ConfigMap</code> is an [[Kubernetes API|API object]] used to store non-confidential data in key-value pairs. [[Pods]] can consume <code>ConfigMaps</code> as [[environment variables]], command-line arguments, or as configuration files in a volume.
+
A <code>ConfigMap</code> is an [[Kubernetes API|API object]] used to store non-confidential data in key-value pairs. Pods can consume ConfigMaps as environment variables, command-line arguments, or as configuration files in a volume.
 
https://kubernetes.io/docs/concepts/configuration/configmap/
 
https://kubernetes.io/docs/concepts/configuration/configmap/
  
== Commands ==
+
 
 
* <code>[[kubectl create configmap]]</code>
 
* <code>[[kubectl create configmap]]</code>
 
:::<code>kubectl create configmap <map-name> <data-source></code>
 
:::<code>kubectl create configmap <map-name> <data-source></code>
 
* <code>[[kubectl get configmaps]]</code>
 
* <code>[[kubectl get configmaps]]</code>
 
* <code> [[kubectl describe configmaps]] YOUR_CONFIG_MAP_NAME</code>
 
* <code> [[kubectl describe configmaps]] YOUR_CONFIG_MAP_NAME</code>
* <code>[[kubectl edit configmap]]</code>
 
  
[[EKS]] (<code>[[aws-auth]]</code> [[configmap]])
+
[[EKS]]
 
* <code>[[kubectl edit -n kube-system configmap/aws-auth]]</code>
 
* <code>[[kubectl edit -n kube-system configmap/aws-auth]]</code>
* <code>[[kubectl describe -n kube-system configmap/aws-auth]]</code>
 
  
== Examples ==
 
{{configmap examples}}
 
 
== Errors ==
 
[[helm list]]
 
[[Error: configmaps is forbidden]]: User "[[system:serviceaccount]]:kube-system:default" cannot list resource "configmaps" in API group "" in the namespace "kube-system"
 
  
 
== Activities ==
 
== Activities ==
 
* [[CKA v1.23]]: [[Use ConfigMaps and Secrets to configure applications]]
 
* [[CKA v1.23]]: [[Use ConfigMaps and Secrets to configure applications]]
 
* [[CKA v1.15]], [[CKA v1.21]]: Understand [[ConfigMaps]]
 
* [[CKA v1.15]], [[CKA v1.21]]: Understand [[ConfigMaps]]
* [[Configure a Pod to Use a ConfigMap]]
 
  
 
== News ==
 
== News ==
 
* Aug 2020 [[Kubernetes v1.19]] [[Immutable]] [[Kubernetes secrets|Secrets]] and [[ConfigMaps]] <ref>https://github.com/kubernetes/enhancements/issues/1412</ref>
 
* Aug 2020 [[Kubernetes v1.19]] [[Immutable]] [[Kubernetes secrets|Secrets]] and [[ConfigMaps]] <ref>https://github.com/kubernetes/enhancements/issues/1412</ref>
 
== Errors ==
 
{{is missing}}
 
  
 
== Related terms ==
 
== Related terms ==
* [[Deployment]], [[Service]], [[Secrets]]
+
* [[Deployment]]
* [[Terraform]]: [[kubernetes_config_map]]
+
* [[Service]]
https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/config_map ([[ConfigMap]])
+
* [[Secrets]]
* [[Terraform resource: kubernetes config map v1 data]]
+
* [[Terraform]]: [[kubernetes_config_map]] https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/config_map ([[ConfigMap]])
 
* <code>[[kind: ConfigMap]]</code>
 
* <code>[[kind: ConfigMap]]</code>
 
* [[Terraform resource: kubernetes_config_map]]
 
* [[Terraform resource: kubernetes_config_map]]
 
* [[Sidecar container]]
 
* [[Sidecar container]]
* [[Kustomize]]
+
* <code>[[aws-auth]]</code> configmap
* <code>[[configMapRef:]]</code>
 
* <code>[[data:]]</code>
 
* <code>[[Error: kind ConfigMap]]</code>
 
* <code>[[Error: UPGRADE FAILED: kind ConfigMap with the name "you-configmap-name" in "your-env" already exists]]</code>
 
* [[Already exists in the cluster]]
 
* [[Kubernetes HostPath volume provider]]
 
* <code>[[projected]]</code>
 
* <code>[[cattle-project]]</code>
 
  
 
== See also ==
 
== See also ==
* {{aws-auth}}
 
 
* {{ConfigMaps}}
 
* {{ConfigMaps}}
 
* {{kubectl info}}
 
* {{kubectl info}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: