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. | + | 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/ | ||
− | + | ||
* <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> | ||
− | |||
− | [[EKS]] | + | [[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> | * <code>[[kubectl describe -n kube-system configmap/aws-auth]]</code> | ||
− | |||
− | |||
− | |||
− | |||
[[helm list]] | [[helm list]] | ||
− | [[Error: configmaps is forbidden]]: User " | + | [[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]] | ||
− | |||
== 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> | ||
− | |||
− | |||
− | |||
== Related terms == | == Related terms == | ||
− | * [[Deployment]] | + | * [[Deployment]] |
− | * [[Terraform]]: [[kubernetes_config_map]] | + | * [[Service]] |
− | https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/config_map ([[ConfigMap]]) | + | * [[Secrets]] |
− | + | * [[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]] | ||
+ | * <code>[[aws-auth]]</code> configmap | ||
* [[Kustomize]] | * [[Kustomize]] | ||
* <code>[[configMapRef:]]</code> | * <code>[[configMapRef:]]</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: