diff --git a/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml b/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml index 64ebcdfe..1332f517 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml @@ -102,6 +102,9 @@ spec: mountPath: /run/sapp/crashreport - name: firewall-log mountPath: /opt/tsg/sapp/log + - name: localtime-node + mountPath: /etc/localtime + readOnly: true {{- if eq .Values.proxy.enable .Values.define_enable_val_yes }} - name: proxy @@ -143,6 +146,9 @@ spec: mountPath: /run/tfe/crashreport - name: proxy-log mountPath: /opt/tsg/tfe/log + - name: localtime-node + mountPath: /etc/localtime + readOnly: true {{- end }} - name: certstore @@ -166,6 +172,9 @@ spec: mountPath: /run/certstore/crashreport - name: certstore-log mountPath: /opt/tsg/certstore/logs + - name: localtime-node + mountPath: /etc/localtime + readOnly: true - name: cert-redis image: "{{ .Values.image.certRedis.repository }}:{{ .Values.image.certRedis.tag | default .Chart.AppVersion }}" @@ -173,6 +182,10 @@ spec: command: ["/usr/bin/redis-server", "/etc/cert-redis.conf"] securityContext: privileged: true + volumeMounts: + - name: localtime-node + mountPath: /etc/localtime + readOnly: true - name: telegraf image: "{{ .Values.image.telegraf.repository }}:{{ .Values.image.telegraf.tag | default .Chart.AppVersion }}" @@ -190,6 +203,9 @@ spec: - name: config-volume mountPath: "/etc/default/telegraf" subPath: "etc/default/telegraf" + - name: localtime-node + mountPath: /etc/localtime + readOnly: true initContainers: - name: tsg-init @@ -215,6 +231,9 @@ spec: subPath: "tfe-env-stop.sh" - name: config-volume mountPath: /target_config + - name: localtime-node + mountPath: /etc/localtime + readOnly: true volumes: - name: opt-tsg-mrzcpd @@ -265,3 +284,6 @@ spec: - name: certstore-log hostPath: path: /var/log/traffic-engine/traffic-engine-{{ .Release.Name }}/certstore/ + - name: localtime-node + hostPath: + path: /etc/localtime