mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
24 lines
825 B
Plaintext
24 lines
825 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * rosa_learning/deploying_application_workshop/learning-deploying-configmaps-secrets-env-var.adoc
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="learning-deploying-configmaps-secrets-envvar-configmaps_{context}"]
|
|
= Configuration using ConfigMaps
|
|
|
|
[role="_abstract"]
|
|
Config maps allow you to decouple configuration artifacts from container image content to keep containerized applications portable.
|
|
|
|
.Procedure
|
|
* In the OSToy application, in the left menu, click *Config Maps*, displaying the contents of the config map available to the OSToy application. The code snippet shows an example of a config map configuration:
|
|
+
|
|
*For example*:
|
|
+
|
|
[source,text]
|
|
----
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: ostoy-configmap-files
|
|
data:
|
|
config.json: '{ "default": "123" }'
|
|
---- |