Skip to content

Instantly share code, notes, and snippets.

@pathcl
Created March 22, 2019 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pathcl/7a4d9b0cb33dbf3d858291da164c2a15 to your computer and use it in GitHub Desktop.
Save pathcl/7a4d9b0cb33dbf3d858291da164c2a15 to your computer and use it in GitHub Desktop.
tzdata.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: tdata
spec:
selector:
matchLabels:
run: tdata
replicas: 2
template:
metadata:
labels:
run: tdata
spec:
containers:
- name: tdata
volumeMounts:
- name: tz-config
mountPath: /etc/localtime
image: nginx
ports:
- containerPort: 80
volumes:
- name: tz-config
hostPath:
path: /usr/share/zoneinfo/Europe/Amsterdam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment