<p>I want to change timezone with command.
I know applying <code>hostpath</code>.</p>
<p>Could you know how to apply command ?</p>
<pre><code>ln -snf /user/share/zoneinfor/$TZ /etc/localtime
</code></pre>
<p>it works well within container. But I don't know applying with command and arguments in yaml file.</p>

<p>You can change the <code>timezone</code> of your pod by using specific timezone config and hostPath volume to set specific timezone. Your yaml file will look something like:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: busybox-sleep
spec:
  containers:
  - name: busybox
    image: busybox
    args:
    - sleep
    - &quot;1000000&quot;
    volumeMounts:
    - name: tz-config
      mountPath: /etc/localtime
  volumes:
    - name: tz-config
      hostPath:
        path: /usr/share/zoneinfo/Europe/Prague
        type: File
</code></pre>
<p>If you want it across all pods or deployments, you need to add volume and volumeMounts to all your deployment file and change the <code>path</code> value in <code>hostPath</code> section to the timezone you want to set.</p>
