diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 50c1b73d..0ddc797b 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -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 diff --git a/config/manager/webhook.yaml b/config/manager/webhook.yaml index f1ebb87f..14158f5c 100644 --- a/config/manager/webhook.yaml +++ b/config/manager/webhook.yaml @@ -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: @@ -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