Skip to content
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

Update standalone agent manifest conditions and scheduler and controllermanager default hosts #28675

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 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,21 @@ 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'
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'
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,21 @@ 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'
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'
condition: ${kubernetes.labels.component} == 'kube-scheduler'
- data_stream:
dataset: kubernetes.proxy
type: metrics
Expand Down