Browse Source

deploy pro/offline-process-promotion:r180540 测试阿里云k8s集群部署

datard 2 years ago
parent
commit
da174cfc49
1 changed files with 28 additions and 28 deletions
  1. 28 28
      deploy-tmp.yaml

+ 28 - 28
deploy-tmp.yaml

@@ -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: