A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/devops/kubernetes-create-configmap-from-yaml-file/ below:

Kubernetes - Create ConfigMap From YAML File

Kubernetes - Create ConfigMap From YAML File

Last Updated : 30 Mar, 2023

A ConfigMap is a dictionary consisting of non-confidential data. Its primary role is to keep the configuration separate from the container image. ConfigMap can be created in different ways. This article will cover the declarative approach to creating ConfigMap from the YAML file.

Example:

 

Step 1. To create a Kubernetes ConfigMap object from the config.yaml file above, run the following command.

$ kubectl create configmap [configmap_name] [attribute] [source]

Depending on the source, the attribute will be:

Step 2. To get more details about the created ConfigMap, run the following command.

$ kubectl describe configmap app-config

Output:

 

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4