Skip to content

Commit

Permalink
Add localtime mounts
Browse files Browse the repository at this point in the history
Signed-off-by: Blake Devcich <[email protected]>
  • Loading branch information
bdevcich committed Jan 9, 2025
1 parent d5898d0 commit cfed67e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,19 @@ spec:
requests:
cpu: 100m
memory: 20Mi
volumeMounts:
- name: localtime
mountPath: /etc/localtime
readOnly: true
- name: tzdata
mountPath: /usr/share/zoneinfo
readOnly: true
volumes:
- name: localtime
hostPath:
path: /etc/localtime
- name: tzdata
hostPath:
path: /usr/share/zoneinfo
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
12 changes: 12 additions & 0 deletions config/manager/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ spec:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
readOnly: true
- name: localtime
mountPath: /etc/localtime
readOnly: true
- name: tzdata
mountPath: /usr/share/zoneinfo
readOnly: true
env:
- name: POD_NAMESPACE
valueFrom:
Expand All @@ -70,5 +76,11 @@ spec:
secret:
defaultMode: 420
secretName: webhook-server-cert
- name: localtime
hostPath:
path: /etc/localtime
- name: tzdata
hostPath:
path: /usr/share/zoneinfo
serviceAccountName: webhook
terminationGracePeriodSeconds: 10

0 comments on commit cfed67e

Please sign in to comment.