<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Configmap on Samarthya</title><link>https://samarthya.me/tags/configmap/</link><description>Recent content in Configmap on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Fri, 21 Aug 2020 12:24:01 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/configmap/index.xml" rel="self" type="application/rss+xml"/><item><title>ConfigMaps: K8S - 2</title><link>https://samarthya.me/posts/configmaps-k8s-2/</link><pubDate>Fri, 21 Aug 2020 12:24:01 +0000</pubDate><guid>https://samarthya.me/posts/configmaps-k8s-2/</guid><description>&lt;p&gt;We looked at using the environment variables using the configmap in the last &lt;a href="https://samarthya.me/posts/" &gt;blog&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The config map remains the same but now in YAML.&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apiVersion: v1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;kind: ConfigMap&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;metadata:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name: happy-faces-mnt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;data:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; data.values: |-&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; my.name=samarthya&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; my.profession=engineer&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;p&gt;I will use this to mount it to a container and then see the contents of the file.&lt;/p&gt;</description></item></channel></rss>