-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce the Logstash operator for ECK #6732
Merged
+17,106
−64
Merged
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
47beb32
Initial Commit of Basic Operator for Logstash (#6404)
robbavey fa2b9e5
Stack monitoring for Logstash (#6436)
kaisecheng 450e61c
Merge remote-tracking branch 'upstream/main' into feature/logstash
robbavey 7ce5d9a
Logstash pipelines (#6480)
kaisecheng a930555
Merge remote-tracking branch 'upstream/main' into feature/logstash
robbavey 797f1c9
Logstash controller unit and integration tests (#6575)
robbavey f984355
Logstash - add ability to reload pipeline(s) without triggering full …
robbavey adca107
Add Logstash Telemetry (#6562)
robbavey 2b22aee
Fix service tests (#6720)
robbavey 69b5ef9
Logstash add ElasticsearchRefs (#6662)
kaisecheng 5811a64
Merge remote-tracking branch 'upstream/main' into feature/logstash
robbavey 169f79d
Update all-crds.yml
robbavey f03aa79
Fix the sample tests for logstash service and stack monitoring (#6731)
robbavey ba98590
Update pkg/apis/logstash/v1alpha1/logstash_types.go
robbavey c1930a2
Add comment to `clusterName`
robbavey 4186efb
Regenerate after comments
robbavey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8,193 changes: 8,193 additions & 0 deletions
8,193
config/crds/v1/bases/logstash.k8s.elastic.co_logstashes.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Using `kubectl apply` stores the complete CRD file as an annotation, | ||
# which may be too big for the annotations size limit. | ||
# One way to mitigate this problem is to remove the (huge) podTemplate properties from the CRD. | ||
# It also avoids the problem of having any k8s-version specific field in the Pod schema, | ||
# that would maybe not match the user's k8s version. | ||
- op: remove | ||
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/podTemplate/properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: logstash.k8s.elastic.co/v1alpha1 | ||
kind: Logstash | ||
metadata: | ||
name: logstash-sample | ||
spec: | ||
count: 3 | ||
version: 8.6.1 | ||
config: | ||
log.level: info | ||
api.http.host: "0.0.0.0" | ||
queue.type: memory | ||
pipelines: | ||
- pipeline.id: main | ||
config.string: input { exec { command => 'uptime' interval => 10 } } output { stdout{} } | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: logstash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: elasticsearch.k8s.elastic.co/v1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: elasticsearch-sample | ||
spec: | ||
version: 8.7.0 | ||
nodeSets: | ||
- name: default | ||
count: 2 | ||
config: | ||
node.store.allow_mmap: false | ||
--- | ||
apiVersion: logstash.k8s.elastic.co/v1alpha1 | ||
kind: Logstash | ||
metadata: | ||
name: logstash-sample | ||
spec: | ||
count: 1 | ||
version: 8.7.0 | ||
elasticsearchRefs: | ||
- clusterName: production | ||
name: elasticsearch-sample | ||
# secretName: external-cloud-es-ref | ||
pipelines: | ||
- pipeline.id: main | ||
config.string: | | ||
input { exec { command => 'uptime' interval => 10 } } | ||
output { | ||
elasticsearch { | ||
hosts => [ "${PRODUCTION_ES_HOSTS}" ] | ||
ssl => true | ||
cacert => "${PRODUCTION_ES_SSL_CERTIFICATE_AUTHORITY}" | ||
user => "${PRODUCTION_ES_USER}" | ||
password => "${PRODUCTION_ES_PASSWORD}" | ||
} | ||
} | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
apiVersion: elasticsearch.k8s.elastic.co/v1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: monitoring | ||
spec: | ||
version: 8.6.1 | ||
nodeSets: | ||
- name: default | ||
count: 1 | ||
config: | ||
node.store.allow_mmap: false | ||
--- | ||
apiVersion: logstash.k8s.elastic.co/v1alpha1 | ||
kind: Logstash | ||
metadata: | ||
name: logstash-sample | ||
spec: | ||
count: 1 | ||
version: 8.7.0 | ||
config: | ||
log.level: info | ||
api.http.host: "0.0.0.0" | ||
queue.type: memory | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: logstash | ||
monitoring: | ||
metrics: | ||
elasticsearchRefs: | ||
- name: monitoring | ||
logs: | ||
elasticsearchRefs: | ||
- name: monitoring | ||
--- | ||
apiVersion: kibana.k8s.elastic.co/v1 | ||
kind: Kibana | ||
metadata: | ||
name: kibana-sample | ||
spec: | ||
version: 8.6.1 | ||
elasticsearchRef: | ||
name: monitoring | ||
count: 1 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apiVersion: elasticsearch.k8s.elastic.co/v1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: elasticsearch-sample | ||
spec: | ||
version: 8.6.1 | ||
nodeSets: | ||
- name: default | ||
count: 3 | ||
config: | ||
node.store.allow_mmap: false | ||
--- | ||
apiVersion: logstash.k8s.elastic.co/v1alpha1 | ||
kind: Logstash | ||
metadata: | ||
name: logstash-sample | ||
spec: | ||
count: 2 | ||
version: 8.6.1 | ||
config: | ||
log.level: info | ||
api.http.host: "0.0.0.0" | ||
api.http.port: 9601 | ||
queue.type: memory | ||
pipelines: | ||
- pipeline.id: main | ||
pipeline.workers: 2 | ||
config.string: "input { beats { port => 5044 }} output { stdout {}}" | ||
services: | ||
- name: api | ||
service: | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 9601 | ||
name: "api" | ||
protocol: TCP | ||
targetPort: 9601 | ||
- name: beats | ||
service: | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 5044 | ||
name: "filebeat" | ||
protocol: TCP | ||
targetPort: 5044 | ||
- port: 5045 | ||
name: "winlogbeat" | ||
protocol: TCP | ||
targetPort: 5045 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove? I think this is not yet supported.