|
@@ -35,18 +35,18 @@ spec:
|
|
mountPath: /data
|
|
mountPath: /data
|
|
#nodeSelector:
|
|
#nodeSelector:
|
|
# app.touchrs: touchrs
|
|
# app.touchrs: touchrs
|
|
- affinity:
|
|
|
|
- podAntiAffinity:
|
|
|
|
- preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- - weight: 100
|
|
|
|
- podAffinityTerm:
|
|
|
|
- labelSelector:
|
|
|
|
- matchExpressions:
|
|
|
|
- - key: app
|
|
|
|
- operator: In
|
|
|
|
- values:
|
|
|
|
- - offline-process-promotion
|
|
|
|
- topologyKey: kubernetes.io/hostname
|
|
|
|
|
|
+# affinity:
|
|
|
|
+# podAntiAffinity:
|
|
|
|
+# preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
+# - weight: 100
|
|
|
|
+# podAffinityTerm:
|
|
|
|
+# labelSelector:
|
|
|
|
+# matchExpressions:
|
|
|
|
+# - key: app
|
|
|
|
+# operator: In
|
|
|
|
+# values:
|
|
|
|
+# - offline-process-promotion
|
|
|
|
+# topologyKey: kubernetes.io/hostname
|
|
containers:
|
|
containers:
|
|
- name: offline-process-promotion
|
|
- name: offline-process-promotion
|
|
image: hub.evbj.easou.com/pro/offline-process-promotion:r180540
|
|
image: hub.evbj.easou.com/pro/offline-process-promotion:r180540
|
|
@@ -101,22 +101,22 @@ spec:
|
|
port: 8080
|
|
port: 8080
|
|
initialDelaySeconds: 40
|
|
initialDelaySeconds: 40
|
|
periodSeconds: 15
|
|
periodSeconds: 15
|
|
- - image: hub.evbj.easou.com/pro/filebeat:7.13.3
|
|
|
|
- imagePullPolicy: IfNotPresent
|
|
|
|
- name: filebeat
|
|
|
|
- volumeMounts:
|
|
|
|
- - name: volume #日志同时挂载在nginx和filebeat中
|
|
|
|
- mountPath: /data
|
|
|
|
- - name: filebeat-config
|
|
|
|
- mountPath: /usr/share/filebeat/filebeat.yml
|
|
|
|
- subPath: filebeat.yml
|
|
|
|
- volumes:
|
|
|
|
- - name: filebeat-config
|
|
|
|
- configMap:
|
|
|
|
- name: filebeat-config-offline-process-promotion
|
|
|
|
- items:
|
|
|
|
- - key: filebeat.yml
|
|
|
|
- path: filebeat.yml
|
|
|
|
|
|
+# - image: hub.evbj.easou.com/pro/filebeat:7.13.3
|
|
|
|
+# imagePullPolicy: IfNotPresent
|
|
|
|
+# name: filebeat
|
|
|
|
+# volumeMounts:
|
|
|
|
+# - name: volume #日志同时挂载在nginx和filebeat中
|
|
|
|
+# mountPath: /data
|
|
|
|
+# - name: filebeat-config
|
|
|
|
+# mountPath: /usr/share/filebeat/filebeat.yml
|
|
|
|
+# subPath: filebeat.yml
|
|
|
|
+# volumes:
|
|
|
|
+# - name: filebeat-config
|
|
|
|
+# configMap:
|
|
|
|
+# name: filebeat-config-offline-process-promotion
|
|
|
|
+# items:
|
|
|
|
+# - key: filebeat.yml
|
|
|
|
+# path: filebeat.yml
|
|
|
|
|
|
volumeClaimTemplates:
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
- metadata:
|