Difference between revisions of "Kubernetes ConfigMaps"

From wikieduonline
Jump to navigation Jump to search
Line 13: Line 13:
 
* <code>[[kubectl describe -n kube-system configmap/aws-auth]]</code>
 
* <code>[[kubectl describe -n kube-system configmap/aws-auth]]</code>
  
 +
== Errors ==
 
  [[helm list]]
 
  [[helm list]]
  [[Error: configmaps is forbidden]]: User "system:serviceaccount:kube-system:default" cannot list resource "configmaps" in API group "" in the namespace "kube-system"
+
  [[Error: configmaps is forbidden]]: User "[[system:serviceaccount]]:kube-system:default" cannot list resource "configmaps" in API group "" in the namespace "kube-system"
  
 
== Activities ==
 
== Activities ==

Revision as of 13:25, 19 September 2023

A ConfigMap is an 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/

Commands

kubectl create configmap <map-name> <data-source>

EKS (aws-auth configmap)

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

News

Errors

 Warning: resource configmaps/kube-root-ca.crt is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically. secret/default-token-7z4zd created
Error from server (Conflict): error when applying patch:
.../...
to:
Resource: "/v1, Resource=configmaps", GroupVersionKind: "/v1, Kind=ConfigMap"
Name: "kube-root-ca.crt", Namespace: "your-namespace"
for: "your.yaml": Operation cannot be fulfilled on configmaps "kube-root-ca.crt": the object has been modified; please apply your changes to the latest version and try again

Related terms

See also

  • https://github.com/kubernetes/enhancements/issues/1412
  • Advertising: