Last week I noticed that the pod in Argo would give a UTC timezone even though the Argo configuration has set a AEDT timezone.
YAML
x
8
1
apiVersion argoproj.io/v1alpha1
2
kind CronWorkflow
3
metadata
4
name my-cron-workflow
5
namespace MYNAMESPACE
6
spec
7
schedule"0 10 * * *"
8
timezone"Australia/Sydney"
Actually, this timezone
in configuration is only used to give the time this scheduled job would run at, not the timezone in every pod.
To set up a unified timezone for all the pods, we need to use volume.
YAML
1
19
19
1
apiVersion v1
2
kind Pod
3
metadata
4
name busybox-sleep
5
spec
6
containers
7
name busybox
8
image busybox
9
args
10
sleep
11
"1000000"
12
volumeMounts
13
name tz-config
14
mountPath /etc/localtime
15
volumes
16
name tz-config
17
hostPath
18
path /usr/share/zoneinfo/Australia/Sydney
19
type File