<p>If I have a basic kubernetes helm template like below:</p>

<pre><code>port: {{ .Values.Port }}
</code></pre>

<p>Is there a way to specify a default port if none is passed in?</p>

<p>In <code>values.yaml</code> you put <code>Port: &lt;port-number&gt;</code> which will be used if you don't pass the value using <code>--set</code>.</p>

<p>You can also set default like following</p>

<pre><code>port: {{ default 1234 .Values.Port }}
# You can replace 1234 with your port number
</code></pre>
