Merge pull request #723 from 3dwardch3ng/infra/logstash

fix volumes mounts
This commit is contained in:
2024-07-30 07:37:02 +10:00
committed by GitHub
3 changed files with 7 additions and 19 deletions

View File

@@ -2,16 +2,16 @@ namespaceOverride: logstash
clusterDomain: logstash.logstash.svc.cluster.local clusterDomain: logstash.logstash.svc.cluster.local
input: "" input: ""
output: "" output: ""
existingConfiguration: "logstash-pipelines" existingConfiguration: ""
enableMultiplePipelines: true enableMultiplePipelines: true
extraVolumes: extraVolumes:
- name: logstash-config-http - name: configurations
hostPath: hostPath:
path: /mnt/nfs/AppData/logstash/config/http.conf path: /mnt/nfs/AppData/logstash/config
type: File type: Directory
extraVolumeMounts: extraVolumeMounts:
- name: logstash-config-http - name: configurations
mountPath: /bitnami/logstash/config/http.conf mountPath: /bitnami/logstash/config
containerPorts: containerPorts:
- name: http - name: http
containerPort: 8080 containerPort: 8080

View File

@@ -1,5 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ../../base - ../../base
- ./pipelines.yaml

View File

@@ -1,11 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: logstash-pipelines
namespace: logstash
data:
pipelines.yaml: |
- pipeline.id: http
path.config: "/opt/bitnami/logstash/config/http.conf"
- pipeline.id: syslog
path.config: "/opt/bitnami/logstash/config/syslog.conf"