[update]同步主机时间

This commit is contained in:
zhangqy 2023-10-27 14:10:55 +08:00
parent 096d8c32d4
commit 948eb08484
3 changed files with 15 additions and 9 deletions

View File

@ -46,9 +46,8 @@ spec:
- mountPath: /home/qiuguo/logs
name: iot-logs
- name: host-time
hostPath:
path: /etc/localtime
type: ''
readOnly: true
mountPath: /etc/localtime
terminationMessagePath: /nfs/data/qiuguo/iot/logs
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
@ -58,6 +57,9 @@ spec:
- name: iot-logs
hostPath:
path: /nfs/data/qiuguo/iot/logs
- name: host-time
hostPath:
path: /etc/localtime
---
apiVersion: v1
kind: Service

View File

@ -46,9 +46,8 @@ spec:
- mountPath: /home/qiuguo/logs
name: iot-logs
- name: host-time
hostPath:
path: /etc/localtime
type: ''
readOnly: true
mountPath: /etc/localtime
terminationMessagePath: /nfs/data/qiuguo/iot/logs
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
@ -58,6 +57,9 @@ spec:
- name: iot-logs
hostPath:
path: /nfs/data/qiuguo/iot/logs
- name: host-time
hostPath:
path: /etc/localtime
---
apiVersion: v1
kind: Service

View File

@ -41,9 +41,8 @@ spec:
- mountPath: /home/qiuguo/logs
name: iot-logs
- name: host-time
hostPath:
path: /etc/localtime
type: ''
readOnly: true
mountPath: /etc/localtime
terminationMessagePath: /nfs/data/qiuguo/iot/logs
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
@ -53,6 +52,9 @@ spec:
- name: iot-logs
hostPath:
path: /nfs/data/qiuguo/iot/logs
- name: host-time
hostPath:
path: /etc/localtime
---
apiVersion: v1
kind: Service