<p>I am new to Kubernetes. I have an issue is if my args are so long and it needs to go to the second line, how to correct the format without messup the Kubernetes yaml file</p>
<p>For exapmle:</p>
<pre class="lang-sh prettyprint-override"><code>command: [&quot;/bin/sh&quot;]
args: [&quot;-c&quot;, &quot;while true; do echo hello; sleep 10;done, while true; do echo hello; sleep 10;done,while true; do echo hello; sleep 10;done,while true; do echo hello; sleep 10;done,while true; do echo hello; sleep 10;done,while true; do echo hello; sleep 10;done,&quot;]
</code></pre>
<p>Thanks</p>

<p>K8s manifests are compliant with the <a href="https://yaml.org/" rel="nofollow noreferrer">YAML standard</a>. So you can do <a href="https://yaml-multiline.info/" rel="nofollow noreferrer">multiline</a> YAML. For example:</p>
<pre class="lang-yaml prettyprint-override"><code>--- 
args: 
  - -c  👈 array multiline notation
  - |
      while true; do echo hello; sleep 10;done,
      while true; do echo hello; sleep 10;done,
      while true; do echo hello; sleep 10;done,
      while true; do echo hello; sleep 10;done,
      while true; do echo hello; sleep 10;done,
      while true; do echo hello; sleep 10;done,
command: 
  - /bin/sh
</code></pre>
<p>✌️</p>
