Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add localtime mounts #230

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading