Sfoglia il codice sorgente

deploy qa/offline-process-charge:v1.0.39 运行环境test

datard 3 anni fa
parent
commit
e788fe41bd
1 ha cambiato i file con 25 aggiunte e 25 eliminazioni
  1. 25 25
      deploy-tmp.yaml

+ 25 - 25
deploy-tmp.yaml

@@ -1,28 +1,4 @@
 ---
-apiVersion: v1
-kind: ConfigMap
-metadata:
-  name: filebeat-config
-  namespace: qa
-data:
-  filebeat.yml: |
-    filebeat.inputs:
-    - type: log
-      paths:
-        - "/data/logs/app/all.log"
-    setup.template.name: "filebeat"
-    setup.template.pattern: "filebeat-*"
-    setup.dashboards.enabled: true
-    setup.template.enabled: true
-    output.elasticsearch:
-      username: ${ELASTICSEARCH_USERNAME}
-      password: ${ELASTICSEARCH_PASSWORD}
-      #hosts: ${ELASTICSEARCH_HOST}
-      hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
-      index: "frontend-filebeat"
-    setup.kibana:
-     host: '${KIBANA_HOST:kibana}:${KIBANA_PORT:5601}'
----
 apiVersion: apps/v1
 kind: StatefulSet
 metadata:
@@ -161,4 +137,28 @@ spec:
           - path: /
             backend:
               serviceName: offline-process-charge-svc
-              servicePort: 80
+              servicePort: 80
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: filebeat-config
+  namespace: qa
+data:
+  filebeat.yml: |
+    filebeat.inputs:
+    - type: log
+      paths:
+        - "/data/logs/app/all.log"
+    setup.template.name: "filebeat"
+    setup.template.pattern: "filebeat-*"
+    setup.dashboards.enabled: true
+    setup.template.enabled: true
+    output.elasticsearch:
+      username: ${ELASTICSEARCH_USERNAME}
+      password: ${ELASTICSEARCH_PASSWORD}
+      #hosts: ${ELASTICSEARCH_HOST}
+      hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
+      index: "frontend-filebeat"
+    setup.kibana:
+     host: '${KIBANA_HOST:kibana}:${KIBANA_PORT:5601}'