<p>To get one of our issue resolved, we need "CATALINA_OPTS=-Djava.awt.headless=true" this property in Kubernetes configuration. i guess this should be added in .yml file.</p>

<p>Please help us , under which this has to be added. Thanks in advance.</p>

<p>Any sample Yaml file or link to it if provided will be great.</p>

saranya
<p><code>CATALINA_OPTS</code> is an environment variable. Here is how to <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/" rel="nofollow noreferrer">define it</a> and set it to a single value in Deployment configuration yaml:</p>

<pre><code>...
spec:
  ...
  template:
    metadata:
      labels:
        ...
    spec:
      containers:
      - image: ...
        ...
        env:
          - name: CATALINA_OPTS
            value: -Djava.awt.headless=true
...
</code></pre>
