<p>kubernetes documentation can be a lot better but as with a very bulky software documentation becomes a big issue to deal with</p>

<p>i am trying to deploy configmap using kubectl and i am yet to find any documentation to explains if i can use tolerations or not with configmaps</p>

<p>i assume if i want to deploy an app that will use configmap, i should deploy in exact nodes i want so all things related to the app stays on same nodes...so following that i will assume configmap should allow tolerations as well</p>

<p>but upon trying to add tolerations so i can target specific nodes, here is what i get</p>

<pre><code>...
unknown field "tolerations" in io.k8s.api.core.v1.ConfigMap
...
</code></pre>

<p>wherever the pod get schedule, configMap will be there on that node, its the responsibility of <strong>kubelet</strong> to bring it on the node from the <strong>etcd</strong> and mount it inside the container(pod), so it does not make sense to put toleration on configMap object.</p>
<ul>
<li>Taint is applied to nodes, and toleration is applied to the pod.</li>
</ul>
<blockquote>
<p>taints and tolerations work together to ensure that pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. Tolerations are applied to pods, and allow (but do not require) the pods to schedule onto nodes with matching taints.</p>
</blockquote>
<ul>
<li><p>With the configMap, you have an independent lifecycle of configuration data. it is not baked into the container, which is a flexible solution.</p>
</li>
<li><p>Get documentation of various resources and their field with the following command</p>
<p><code>kubectl explain $K8sObject --recursive</code></p>
</li>
</ul>
<p><a href="https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/#concepts" rel="nofollow noreferrer">taint-and-toleration-Concept</a></p>
