Skip to content

Commit

Permalink
[1.2] Add Beat config library (#3406) and Fix recipes E2E tests (#3462)…
Browse files Browse the repository at this point in the history
… (#3459)

* Add Beat config library (#3406)

* Add Beat config library

* Fix commented security context placement

* Apply suggestions from code review

Co-authored-by: Peter Brachwitz <peter.brachwitz@gmail.com>

* Add beats config library readme

* Apply suggestions from code review

Co-authored-by: Peter Brachwitz <peter.brachwitz@gmail.com>

* Remove add_kubernetes_metadata processor

* PR fixes

* Add note about namespace expectations for heartbeat example

* Add hostNetwork comments, add fix for GKE

Co-authored-by: Peter Brachwitz <peter.brachwitz@gmail.com>

* Fix recipes E2E tests (#3462)

* Add permissions for e2e runner necessary for recipes testing

* Add a note about examples purpose

* Sync Beat examples descriptions between readme and docs

Co-authored-by: Peter Brachwitz <peter.brachwitz@gmail.com>
  • Loading branch information
david-kow and pebrc authored Jul 17, 2020
1 parent 36b18b6 commit 652847e
Show file tree
Hide file tree
Showing 24 changed files with 1,391 additions and 623 deletions.
2 changes: 1 addition & 1 deletion config/dev/elastic-psp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
- SETPCAP
- AUDIT_WRITE
- NET_BIND_SERVICE
hostNetwork: false
hostNetwork: true
hostIPC: false
hostPID: false
runAsUser:
Expand Down
22 changes: 21 additions & 1 deletion config/e2e/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ rules:
- configmaps
- events
- serviceaccounts
# to create resources defined in recipes
- namespaces
- nodes
- nodes/stats
verbs:
- get
- list
Expand Down Expand Up @@ -112,11 +116,12 @@ rules:
- clusterroles
verbs:
- bind
- get
# to create resources defined in recipes
- apiGroups:
- "rbac.authorization.k8s.io"
resources:
- clusterrolebindings
- clusterroles
verbs:
- get
- list
Expand All @@ -131,11 +136,26 @@ rules:
- deployments
- statefulsets
- daemonsets
- replicasets # to create resources defined in recipes
verbs:
- get
- list
- watch
- delete
# to create resources defined in recipes
- apiGroups:
- "extensions"
resources:
- replicasets
verbs:
- get
- list
- watch
# to create resources defined in recipes
- nonResourceURLs:
- "/metrics"
verbs:
- get
- apiGroups:
- elasticsearch.k8s.elastic.co
resources:
Expand Down
4 changes: 0 additions & 4 deletions config/recipes/beats/0_ns.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions config/recipes/beats/1_monitor.yaml

This file was deleted.

158 changes: 0 additions & 158 deletions config/recipes/beats/2_filebeat-kubernetes.yaml

This file was deleted.

Loading

0 comments on commit 652847e

Please sign in to comment.