This commit is contained in:
wulin 2023-10-27 15:33:37 +08:00
commit a747a279d9
3 changed files with 18 additions and 4 deletions

View File

@ -39,14 +39,15 @@ spec:
protocol: TCP
resources:
requests: #资源请求的设置
cpu: 0m #Cpu请求容器启动的初始可用数量
memory: 600Mi #内存清楚,容器启动的初始可用数量
limits:
cpu: 80m
memory: 600Mi
volumeMounts:
- mountPath: /home/qiuguo/logs
name: iot-logs
- name: host-time
readOnly: true
mountPath: /etc/localtime
terminationMessagePath: /nfs/data/qiuguo/iot/logs
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
@ -56,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

@ -39,14 +39,15 @@ spec:
protocol: TCP
resources:
requests: #资源请求的设置
cpu: 0m #Cpu请求容器启动的初始可用数量
memory: 600Mi #内存清楚,容器启动的初始可用数量
limits:
cpu: 80m
memory: 600Mi
volumeMounts:
- mountPath: /home/qiuguo/logs
name: iot-logs
- name: host-time
readOnly: true
mountPath: /etc/localtime
terminationMessagePath: /nfs/data/qiuguo/iot/logs
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
@ -56,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

@ -40,6 +40,9 @@ spec:
volumeMounts:
- mountPath: /home/qiuguo/logs
name: iot-logs
- name: host-time
readOnly: true
mountPath: /etc/localtime
terminationMessagePath: /nfs/data/qiuguo/iot/logs
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
@ -49,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