<p>I have a docker image that I run with specific runtime arguments. When I install a helm chart to deploy the kubernetes pod with this image, the output from the pod is different from when I use 'docker run.' I found that I should use command and args parameters in the values.yml file and the templates/deployment directory but I'm still not getting the desired output.</p>
<p>I've tried different variations from these links but no luck:
<a href="https://stackoverflow.com/questions/44098164/how-to-pass-docker-run-flags-via-kubernetes-pod">How to pass docker run flags via kubernetes pod</a>
<a href="https://stackoverflow.com/questions/52636571/how-to-pass-dynamic-arguments-to-a-helm-chart-that-runs-a-job">How to pass dynamic arguments to a helm chart that runs a job</a>
<a href="https://stackoverflow.com/questions/59093384/how-to-pass-arguments-to-docker-container-in-kubernetes-or-openshift-through-com">How to pass arguments to Docker container in Kubernetes or OpenShift through command line?</a></p>
<p>Here's the docker run command:
<code>docker run --it --rm --network=host --ulimit rtptrio=0 --cap-add=sys_nice --ipc=private --sysctl fs.msqueue.msg_max=&quot;10000&quot; image_name:tag</code></p>

Eddie
<p>Please try something like that:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: example
spec:
  hostNetwork: true
  securityContext:
    capabilities:
      add: [&quot;SYS_NICE&quot;]
  containers:
  - name: main
    image: image_name:tag
</code></pre>
