I need to deploy an application that have Europe/Rome timezone.
I applied the following deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
labels:
app: myapp
spec:
replicas: 1
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: 10.166.23.73:5000/local/myapp:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: TZ
value: Europe/Rome
volumeMounts:
- name: tz-rome
mountPath: /etc/localtime
volumes:
- name: tz-rome
hostPath:
path: /usr/share/zoneinfo/Europe/Rome
However, when I run "date" command within the POD, I don't get the "Europe/Rome" timezone...
What is wrong with the above deployment yaml?