# ConfigMap

ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1import "k8s.io/api/core/v1"ConfigMapConfigMap holds configuration data for pods to consume.apiVersion: v1kind: ConfigMapmetadata (ObjectMeta)Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadatabinaryData (map[string][]byte)BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.data (map[string]string)Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.immutable (boolean)Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.ConfigMapListConfigMapList is a resource containing a list of ConfigMap objects.apiVersion: v1kind: ConfigMapListmetadata (ListMeta)More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadataitems ([]ConfigMap), requiredItems is the list of ConfigMaps.Operationsget read the specified ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmaps/{name}Parametersname (in path): string, requiredname of the ConfigMapnamespace (in path): string, requirednamespacepretty (in query): stringprettyResponse200 (ConfigMap): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/namespaces/{namespace}/configmapsParametersnamespace (in path): string, requirednamespaceallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ConfigMapList): OK401: Unauthorizedlist list or watch objects of kind ConfigMapHTTP RequestGET /api/v1/configmapsParametersallowWatchBookmarks (in query): booleanallowWatchBookmarkscontinue (in query): stringcontinuefieldSelector (in query): stringfieldSelectorlabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondswatch (in query): booleanwatchResponse200 (ConfigMapList): OK401: Unauthorizedcreate create a ConfigMapHTTP RequestPOST /api/v1/namespaces/{namespace}/configmapsParametersnamespace (in path): string, requirednamespacebody: ConfigMap, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ConfigMap): OK201 (ConfigMap): Created202 (ConfigMap): Accepted401: Unauthorizedupdate replace the specified ConfigMapHTTP RequestPUT /api/v1/namespaces/{namespace}/configmaps/{name}Parametersname (in path): string, requiredname of the ConfigMapnamespace (in path): string, requirednamespacebody: ConfigMap, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationpretty (in query): stringprettyResponse200 (ConfigMap): OK201 (ConfigMap): Created401: Unauthorizedpatch partially update the specified ConfigMapHTTP RequestPATCH /api/v1/namespaces/{namespace}/configmaps/{name}Parametersname (in path): string, requiredname of the ConfigMapnamespace (in path): string, requirednamespacebody: Patch, requireddryRun (in query): stringdryRunfieldManager (in query): stringfieldManagerfieldValidation (in query): stringfieldValidationforce (in query): booleanforcepretty (in query): stringprettyResponse200 (ConfigMap): OK201 (ConfigMap): Created401: Unauthorizeddelete delete a ConfigMapHTTP RequestDELETE /api/v1/namespaces/{namespace}/configmaps/{name}Parametersname (in path): string, requiredname of the ConfigMapnamespace (in path): string, requirednamespacebody: DeleteOptionsdryRun (in query): stringdryRungracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentialpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyResponse200 (Status): OK202 (Status): Accepted401: Unauthorizeddeletecollection delete collection of ConfigMapHTTP RequestDELETE /api/v1/namespaces/{namespace}/configmapsParametersnamespace (in path): string, requirednamespacebody: DeleteOptionscontinue (in query): stringcontinuedryRun (in query): stringdryRunfieldSelector (in query): stringfieldSelectorgracePeriodSeconds (in query): integergracePeriodSecondsignoreStoreReadErrorWithClusterBreakingPotential (in query): booleanignoreStoreReadErrorWithClusterBreakingPotentiallabelSelector (in query): stringlabelSelectorlimit (in query): integerlimitpretty (in query): stringprettypropagationPolicy (in query): stringpropagationPolicyresourceVersion (in query): stringresourceVersionresourceVersionMatch (in query): stringresourceVersionMatchsendInitialEvents (in query): booleansendInitialEventstimeoutSeconds (in query): integertimeoutSecondsResponse200 (Status): OK401: UnauthorizedThis page is automatically generated.If you plan to report an issue with this page, mention that the page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.