-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
monitoring: deploy
prometheus-adapter
This should enable the `metrics.k8s.io` API, and as such reinstate the `kubectl top` functionality and allow the `HorizontalPodAutoscaler` controller to work. The chart is rendered using ``` $ ./charts/render.py prometheus-adapter metalk8s-monitoring charts/prometheus-adapter.yaml charts/prometheus-adapter/ > salt/metalk8s/addons/prometheus-adapter/deployed/chart.sls ``` Fixes: #2049 See: #2049
- Loading branch information
Showing
8 changed files
with
489 additions
and
8 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
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,47 @@ | ||
image: | ||
repository: '{%- endraw -%}{{ build_image_name(\"k8s-prometheus-adapter-amd64\", False) }}{%- raw -%}' | ||
|
||
nodeSelector: | ||
node-role.kubernetes.io/infra: '' | ||
|
||
prometheus: | ||
url: http://prometheus-operator-prometheus | ||
|
||
replicas: 2 | ||
|
||
rules: | ||
resource: | ||
cpu: | ||
containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>) | ||
nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m])) by (<<.GroupBy>>) | ||
resources: | ||
overrides: | ||
node: | ||
resource: node | ||
namespace: | ||
resource: namespace | ||
pod_name: | ||
resource: pod | ||
containerLabel: container_name | ||
memory: | ||
containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>}) by (<<.GroupBy>>) | ||
nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>) | ||
resources: | ||
overrides: | ||
node: | ||
resource: node | ||
namespace: | ||
resource: namespace | ||
pod_name: | ||
resource: pod | ||
containerLabel: container_name | ||
window: 3m | ||
|
||
|
||
tolerations: | ||
- key: 'node-role.kubernetes.io/bootstrap' | ||
operator: 'Exists' | ||
effect: 'NoSchedule' | ||
- key: 'node-role.kubernetes.io/infra' | ||
operator: 'Exists' | ||
effect: 'NoSchedule' |
Oops, something went wrong.