rename logstash

main
ycz008 2023-09-22 17:39:51 +08:00
parent 855e6238a8
commit 4d504c3cc2
1 changed files with 9 additions and 1 deletions

View File

@ -25,7 +25,9 @@ data:
index => "dev-logback-beaconfire-%{+YYYY.MM.dd}" index => "dev-logback-beaconfire-%{+YYYY.MM.dd}"
} }
} }
logstash.yml: |-
http.host: "0.0.0.0"
xpack.monitoring.elasticsearch.hosts: [ "http://elastic:9200" ]
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
@ -61,6 +63,10 @@ spec:
mountPath: /usr/share/logstash/pipeline/logstash.conf mountPath: /usr/share/logstash/pipeline/logstash.conf
subPath: logstash.conf subPath: logstash.conf
readOnly: true readOnly: true
- name: config
mountPath: /usr/share/logstash/config/logstash.yml
subPath: logstash.yml
readOnly: true
volumes: volumes:
- name: config - name: config
configMap: configMap:
@ -68,6 +74,8 @@ spec:
items: items:
- key: logstash.conf - key: logstash.conf
path: logstash.conf path: logstash.conf
- key: logstash.yml
path: logstash.yml
--- ---
apiVersion: v1 apiVersion: v1