Skip to content

Commit

Permalink
[8.0](backport #28675) Update standalone agent manifest conditions an…
Browse files Browse the repository at this point in the history
…d scheduler and controllermanager default hosts (#28765)

* Update standalone agent manifest conditions and scheduler and controllermanager default hosts (#28675)
  • Loading branch information
mergify[bot] authored Nov 3, 2021
1 parent 523cfb9 commit c41fc8d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Update cloud.google.com/go library. {pull}28229[28229]
- Add additional metadata to the root HTTP endpoint. {pull}28265[28265]
- Upgrade k8s.io/client-go library. {pull}28228[28228]
- Update kubernetes scheduler and controllermanager endpoints in elastic-agent-standalone-kubernetes.yaml with secure ports {pull}28675[28675]

*Auditbeat*

Expand Down
12 changes: 8 additions & 4 deletions deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,19 +341,23 @@ data:
type: metrics
metricsets:
- controllermanager
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
hosts:
- '${kubernetes.pod.ip}:10252'
- 'https://${kubernetes.pod.ip}:10257'
period: 10s
condition: ${kubernetes.pod.labels.component} == 'kube-controller-manager'
ssl.verification_mode: none
condition: ${kubernetes.labels.component} == 'kube-controller-manager'
- data_stream:
dataset: kubernetes.scheduler
type: metrics
metricsets:
- scheduler
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
hosts:
- '${kubernetes.pod.ip}:10251'
- 'https://${kubernetes.pod.ip}:10259'
period: 10s
condition: ${kubernetes.pod.labels.component} == 'kube-scheduler'
ssl.verification_mode: none
condition: ${kubernetes.labels.component} == 'kube-scheduler'
- data_stream:
dataset: kubernetes.proxy
type: metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,19 +341,23 @@ data:
type: metrics
metricsets:
- controllermanager
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
hosts:
- '${kubernetes.pod.ip}:10252'
- 'https://${kubernetes.pod.ip}:10257'
period: 10s
condition: ${kubernetes.pod.labels.component} == 'kube-controller-manager'
ssl.verification_mode: none
condition: ${kubernetes.labels.component} == 'kube-controller-manager'
- data_stream:
dataset: kubernetes.scheduler
type: metrics
metricsets:
- scheduler
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
hosts:
- '${kubernetes.pod.ip}:10251'
- 'https://${kubernetes.pod.ip}:10259'
period: 10s
condition: ${kubernetes.pod.labels.component} == 'kube-scheduler'
ssl.verification_mode: none
condition: ${kubernetes.labels.component} == 'kube-scheduler'
- data_stream:
dataset: kubernetes.proxy
type: metrics
Expand Down

0 comments on commit c41fc8d

Please sign in to comment.