[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 - mountPath: /home/qiuguo/logs
name: iot-logs name: iot-logs
- name: host-time - name: host-time
hostPath: readOnly: true
path: /etc/localtime mountPath: /etc/localtime
type: ''
terminationMessagePath: /nfs/data/qiuguo/iot/logs terminationMessagePath: /nfs/data/qiuguo/iot/logs
terminationMessagePolicy: File terminationMessagePolicy: File
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
@ -58,6 +57,9 @@ spec:
- name: iot-logs - name: iot-logs
hostPath: hostPath:
path: /nfs/data/qiuguo/iot/logs path: /nfs/data/qiuguo/iot/logs
- name: host-time
hostPath:
path: /etc/localtime
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

View File

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

View File

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