add logstash alert imgpull

main
ycz008 2024-02-26 15:06:26 +08:00
parent f7c9418c6c
commit c7a1807f09
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: logstash-config name: logstash-config-alert
data: data:
logstash.conf: |- logstash.conf: |-
input { input {
@ -72,6 +72,8 @@ spec:
labels: labels:
app: logstash app: logstash
spec: spec:
imagePullSecrets:
- name: docker-hub
containers: containers:
- name: logstash - name: logstash
image: beaconfireiic/logstash:7.16.3 image: beaconfireiic/logstash:7.16.3
@ -96,7 +98,7 @@ spec:
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: logstash-config name: logstash-config-alert
items: items:
- key: logstash.conf - key: logstash.conf
path: logstash.conf path: logstash.conf