<p>I want to change timezone of our entire on-prim kubernetes Cluster from default UTC to America/Los_Angeles. </p>

<p>I am aware about changing it for single deployment by using volumes[ref.: <a href="https://evalle.xyz/posts/kubernetes-tz/]" rel="nofollow noreferrer">https://evalle.xyz/posts/kubernetes-tz/]</a> This is tedious job to do, as there are many pods in my cluster.</p>

<p>I am looking out better option to do it for entire cluster one go. Any help much appreciated.</p>

<p><strong>TL;DR</strong>: You will not be able to globally set the TZ in a cluster.</p>
<p>Based on the answer of “<em>KarlKFI</em>” in (<a href="https://stackoverflow.com/questions/48949090/what-time-is-it-in-a-kubernetes-pod">What time is it in a Kubernetes pod?</a>)</p>
<blockquote>
<p>The clock in a container is the same as the host machine because it’s controlled by the kernel.</p>
<p>…</p>
</blockquote>
<p>As you already mentioned, you can change the TZ of the POD by binding the <code>zoneinfo</code> of the host OS.</p>
<p>So the <strong>TIME ZONE</strong> (TZ) is something that is locally controlled at  POD level  and can’t be changed globally because this should be done within the POD definition.</p>
<p>If you want to change the TZ without binding the <code>zoneinfo</code> of the host OS, based on (<a href="https://serverfault.com/questions/683605/docker-container-time-timezone-will-not-reflect-changes">https://serverfault.com/questions/683605/docker-container-time-timezone-will-not-reflect-changes</a>) you may change it by setting the TZ environment variable. If you change your image and set the TZ  environment variable in there, when the POD is created it will inherit from the image so the POD will be created with the TZ environment variable set.</p>
<p>So your only options are:</p>
<p><strong>1.-</strong> Bind the <code>zoneinfo</code> of the host OS in each POD.</p>
<p><strong>2.-</strong> Change your TimeZone on each node of your cluster.</p>
<p><strong>3.</strong>- Set the TZ environment variable on your <em><strong>IMAGE</strong></em> so the POD will inherit the value when is created.</p>
