Skip to content

Commit

Permalink
Tidy up recipes after code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
robbavey committed Apr 28, 2023
1 parent 4f874b1 commit d92d0cc
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 292 deletions.
4 changes: 2 additions & 2 deletions config/recipes/logstash/README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ These recipes demonstrate how to run Logstash, Elasticsearch, Kibana and Filebea

Deploys Logstash with the pipeline defined inline in the CRD.

===== Pipeline as secret - `logstash-pipelinesecret.yaml`
===== Pipeline as secret - `logstash-pipeline-as-secret.yaml`

Deploys Logstash with the pipeline defined in a Secret and referred to via `pipelinesRef`.

===== Pipeline as mounted volume - `logstash-pipelinevolume.yaml`
===== Pipeline as mounted volume - `logstash-pipeline-as-volume.yaml`

Deploys Logstash with the pipeline details defined in the CRD, and the pipeline itself mounted as a volume.

Expand Down
16 changes: 0 additions & 16 deletions config/recipes/logstash/logstash-eck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: elasticsearch
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: elasticsearch
spec:
version: 8.7.0
nodeSets:
Expand All @@ -19,9 +16,6 @@ apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: kibana
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: kibana
spec:
version: 8.7.0
count: 1
Expand All @@ -32,9 +26,6 @@ apiVersion: beat.k8s.elastic.co/v1beta1
kind: Beat
metadata:
name: filebeat
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
type: filebeat
version: 8.7.0
Expand All @@ -47,10 +38,6 @@ spec:
hosts: ["logstash-ls-api.default.svc:5044"]
deployment:
podTemplate:
metadata:
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
automountServiceAccountToken: true
initContainers:
Expand Down Expand Up @@ -78,9 +65,6 @@ apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
name: logstash
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: logstash
spec:
count: 1
version: 8.7.0
Expand Down
20 changes: 0 additions & 20 deletions config/recipes/logstash/logstash-monitored.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: elasticsearch
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: elasticsearch
spec:
version: 8.7.0
nodeSets:
Expand All @@ -19,9 +16,6 @@ apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: kibana
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: kibana
spec:
version: 8.7.0
count: 1
Expand All @@ -32,9 +26,6 @@ apiVersion: beat.k8s.elastic.co/v1beta1
kind: Beat
metadata:
name: filebeat
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
type: filebeat
version: 8.7.0
Expand All @@ -47,10 +38,6 @@ spec:
hosts: ["logstash-ls-api.default.svc:5044"]
deployment:
podTemplate:
metadata:
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
automountServiceAccountToken: true
initContainers:
Expand Down Expand Up @@ -78,9 +65,6 @@ apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
name: logstash
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: logstash
spec:
count: 1
version: 8.7.0
Expand Down Expand Up @@ -148,7 +132,3 @@ spec:
count: 1
elasticsearchRef:
name: elasticsearch-monitoring
config:
# enable the UI to reflect container level CPU usage, only displays info if CPU limits are set on the monitored ES cluster
# https://www.elastic.co/guide/en/kibana/current/monitoring-settings-kb.html
monitoring.ui.container.elasticsearch.enabled: true
28 changes: 1 addition & 27 deletions config/recipes/logstash/logstash-multi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ kind: Elasticsearch
metadata:
name: qa
namespace: qa
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: elasticsearch
spec:
version: 8.7.0
nodeSets:
Expand All @@ -28,9 +25,6 @@ kind: Kibana
metadata:
name: qa
namespace: qa
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: kibana
spec:
version: 8.7.0
count: 1
Expand All @@ -41,9 +35,6 @@ apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: production
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: elasticsearch
spec:
version: 8.7.0
nodeSets:
Expand All @@ -57,9 +48,6 @@ apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: production
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: kibana
spec:
version: 8.7.0
count: 1
Expand All @@ -70,9 +58,6 @@ apiVersion: beat.k8s.elastic.co/v1beta1
kind: Beat
metadata:
name: filebeat
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
type: filebeat
version: 8.7.0
Expand All @@ -85,10 +70,6 @@ spec:
hosts: ["logstash-ls-api.default.svc:5044"]
deployment:
podTemplate:
metadata:
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
automountServiceAccountToken: true
initContainers:
Expand Down Expand Up @@ -116,9 +97,6 @@ apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
name: logstash
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: logstash
spec:
count: 1
version: 8.7.0
Expand Down Expand Up @@ -218,8 +196,4 @@ spec:
version: 8.7.0
count: 1
elasticsearchRef:
name: elasticsearch-monitoring
config:
# enable the UI to reflect container level CPU usage, only displays info if CPU limits are set on the monitored ES cluster
# https://www.elastic.co/guide/en/kibana/current/monitoring-settings-kb.html
monitoring.ui.container.elasticsearch.enabled: true
name: elasticsearch-monitoring
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: elasticsearch
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: elasticsearch
spec:
version: 8.7.0
nodeSets:
Expand All @@ -19,9 +16,6 @@ apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: kibana
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: kibana
spec:
version: 8.7.0
count: 1
Expand All @@ -32,9 +26,6 @@ apiVersion: beat.k8s.elastic.co/v1beta1
kind: Beat
metadata:
name: filebeat
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
type: filebeat
version: 8.7.0
Expand All @@ -47,10 +38,6 @@ spec:
hosts: ["logstash-ls-api.default.svc:5044"]
deployment:
podTemplate:
metadata:
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
automountServiceAccountToken: true
initContainers:
Expand Down Expand Up @@ -78,9 +65,6 @@ apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
name: logstash
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: logstash
spec:
count: 1
version: 8.7.0
Expand All @@ -104,8 +88,6 @@ apiVersion: v1
kind: Secret
metadata:
name: logstash-pipeline
labels:
app.kubernetes.io/name: eck-logstash
stringData:
pipelines.yml: |-
- pipeline.id: main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: elasticsearch
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: elasticsearch
spec:
version: 8.7.0
nodeSets:
Expand All @@ -19,9 +16,6 @@ apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: kibana
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: kibana
spec:
version: 8.7.0
count: 1
Expand All @@ -32,9 +26,6 @@ apiVersion: beat.k8s.elastic.co/v1beta1
kind: Beat
metadata:
name: filebeat
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
type: filebeat
version: 8.7.0
Expand All @@ -47,10 +38,6 @@ spec:
hosts: ["logstash-ls-api.default.svc:5044"]
deployment:
podTemplate:
metadata:
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: filebeat
spec:
automountServiceAccountToken: true
initContainers:
Expand Down Expand Up @@ -78,9 +65,6 @@ apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
name: logstash
labels:
app.kubernetes.io/name: eck-logstash
app.kubernetes.io/component: logstash
spec:
count: 1
version: 8.7.0
Expand Down Expand Up @@ -117,8 +101,6 @@ apiVersion: v1
kind: Secret
metadata:
name: logstash-pipeline
labels:
app.kubernetes.io/name: eck-logstash
stringData:
input.conf: |-
input {
Expand Down
Loading

0 comments on commit d92d0cc

Please sign in to comment.