<p>How can we use url of  datasource in kubernetes while creating configmap
like 
ex. kubectl create configmap config-from-file --from-file=<a href="https://url-to-file-location" rel="nofollow noreferrer">https://url-to-file-location</a></p>

Paramanand Dhuri
<p>No, currently it is not possible to <em>directly</em> use URL as source for a configMap property.</p>

<p>But this will do the trick:</p>

<pre><code>kubectl create configmap config-from-url --from-literal=propkey="$(curl -k https://url-to-file-location)"
</code></pre>

<p>You can specify the namespace where to create the configMap with <code>-n</code> or <code>--namespace</code> - see <code>kubectl options</code>.</p>

<p>The <code>-k</code> option for <code>curl</code> allows connections to sites with untrusted (e.g. self-signed) certs.</p>

<p>Using <code>wget</code> instead of <code>curl</code> can be another option.</p>
