<p>For each namespace in K8s (existing ones), I would like to create an object which contains a text, for example the Jenkins URL of the job.</p>
<p>Which K8s object should be used for this?</p>
<p>Thanks,</p>

Tom S
<p>As @jordanm said, you can use config maps as volumes, you can add them as values by following the below method</p>
<p>Create ConfigMap From Literal Values, using the --from-literal option.</p>
<p>To do so, follow the basic syntax:</p>
<pre><code>kubectl create configmap [configmap_name] --from-literal [key1]=[value1]
</code></pre>
<p>To see details from a Kubernetes ConfigMap and the values for keys, use the command:</p>
<pre><code>kubectl get configmaps [configmap_name] -o yaml
</code></pre>
<p>The output should display information in the yaml format:</p>
<pre><code>…
apiVersion: v1
data: 
  key1: value1
…
</code></pre>
<p>Once you have created a ConfigMap, you can mount the configuration to the pod by using volumes.
Add a volume section to the to the yaml file of your pod:</p>
<pre><code>volumes:
  - name: config
  configMap
    name: [configmap_name]
    items:
    - key: [key/file_name]
    path: [inside_the_pod]
</code></pre>
<p>For more info refer to this <a href="https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_create_configmap/" rel="nofollow noreferrer">document</a>.</p>
