-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [helm] fleet mode fixes (#6345) * fix: allow fleet mode to do the necessary k8s changes for enabled integrations * fix: make kubernetes integration enabled by default * fix: enable leader election for fleet mode unless explicitly disabled by user * fix: enable hostNetwork for perNode preset (cherry picked from commit 0d94ead) # Conflicts: # deploy/helm/elastic-agent/examples/kubernetes-hints-autodiscover/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/multiple-integrations/rendered/manifest.yaml # deploy/helm/elastic-agent/templates/integrations/_kubernetes/_preset_pernode.tpl * fix: resolve conflicts --------- Co-authored-by: Panos Koutsovasilis <[email protected]>
- Loading branch information
1 parent
f5505dc
commit 9bc1acc
Showing
15 changed files
with
98 additions
and
124 deletions.
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
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
43 changes: 5 additions & 38 deletions
43
deploy/helm/elastic-agent/examples/fleet-managed/fleet-values.yaml
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 |
---|---|---|
@@ -1,43 +1,10 @@ | ||
kubernetes: | ||
enabled: true | ||
system: | ||
enabled: true | ||
agent: | ||
fleet: | ||
enabled: true | ||
url: http://localhost:8220 | ||
token: fleetToken | ||
preset: nginx | ||
presets: | ||
nginx: | ||
mode: deployment | ||
securityContext: | ||
runAsUser: 0 | ||
serviceAccount: | ||
create: true | ||
clusterRole: | ||
create: true | ||
rules: | ||
# minimum cluster role ruleset required by agent | ||
- apiGroups: [ "" ] | ||
resources: | ||
- nodes | ||
- namespaces | ||
- pods | ||
verbs: | ||
- get | ||
- watch | ||
- list | ||
- apiGroups: [ "apps" ] | ||
resources: | ||
- replicasets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: [ "batch" ] | ||
resources: | ||
- jobs | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
providers: | ||
kubernetes_leaderelection: | ||
enabled: false | ||
preset: perNode |
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
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
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ system: | |
vars: | ||
paths: | ||
- /var/log/custom_syslog.log | ||
|
||
kubernetes: | ||
enabled: false | ||
agent: | ||
unprivileged: true |
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
Oops, something went wrong.