Damien Grisonnet
4c6a06cf7e
jsonnet: make prometheus-adapter highly-available
...
Prometheus-adapter is a component of the monitoring stack that in most
cases require to be highly available. For instance, we most likely
always want the autoscaling pipeline to be available and we also want to
avoid having no available backends serving the metrics API apiservices
has it would result in both the AggregatedAPIDown alert firing and the
kubectl top command not working anymore.
In order to make the adapter highly-avaible, we need to increase its
replica count to 2 and come up with a rolling update strategy and a
pod anti-affinity rule based on the kubernetes hostname to prevent the
adapters to be scheduled on the same node. The default rolling update
strategy for deployments isn't enough as the default maxUnavaible value
is 25% and is rounded down to 0. This means that during rolling-updates
scheduling will fail if there isn't more nodes than the number of
replicas. As for the maxSurge, the default should be fine as it is
rounded up to 1, but for clarity it might be better to just set it to 1.
For the pod anti-affinity constraints, it would be best if it was hard,
but having it soft should be good enough and fit most use-cases.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
2021-04-22 09:57:14 +02:00
Kemal Akkoyun
0cde11d3fb
Merge pull request #1094 from paulfantom/follow-up#1039
...
jsonnet: fix windows addon
2021-04-16 17:19:59 +02:00
paulfantom
3135cdd70d
jsonnet: fix windows addon
2021-04-16 15:12:41 +02:00
Paweł Krupa
07136d1d6e
Merge pull request #1039 from paulfantom/unify-config
...
jsonnet: unify internal configuration field name
2021-04-16 15:05:26 +02:00
Paweł Krupa
8b62749642
Merge pull request #1076 from paulfantom/ksm-lite
...
reduce KSM cardinality by denylisting unused metrics
2021-04-16 12:36:31 +02:00
Paweł Krupa
0cb0c49186
Merge pull request #1092 from xpepermint/update-versions
...
Update versions
2021-04-16 08:58:26 +02:00
Kristijan Sedlak
28d58a9dbc
Update versions
2021-04-14 20:19:00 +02:00
Paweł Krupa
7a3879ba49
Merge pull request #1070 from ArthurSens/as/psp-respect-common-ns
...
Psp should be deployed at the same namespace as kube-prometheus stack
2021-04-12 10:31:51 +02:00
Paweł Krupa
9b5b9dccf7
Merge pull request #1080 from markus-codes/main
...
update customizing kube-prometheus installing section
2021-04-12 09:34:25 +02:00
Paweł Krupa
0306cdc053
Merge pull request #1081 from adinhodovic/document-mixin-lib
...
Document usage of the mixin library
2021-04-12 09:33:45 +02:00
Adin Hodovic
19801f0709
Document usage of the mixin library
2021-04-10 00:19:17 +02:00
Markus Heinemann
e13f0db3d1
update customizing kube-prometheus installing section
...
raised the version of kube-prometheus to 0.7 in the customizing
kube-prometheus installing section
2021-04-09 12:42:11 +00:00
Paweł Krupa
1e67c71703
Merge pull request #1072 from dgrisonnet/platform-patch
...
Allow configuring the platform used directly instead of having to use a patch
2021-04-09 14:29:34 +02:00
Damien Grisonnet
ed5a2f94fc
jsonnet: fix test failures with platformPatch
...
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
2021-04-09 12:59:18 +02:00
Paweł Krupa
eaeb0c6acf
Merge pull request #1078 from jan--f/update-kubernetes-mixins
2021-04-09 12:36:01 +02:00
Jan Fajerski
1cefb18e55
update generated manifests
...
Signed-off-by: Jan Fajerski <jfajersk@redhat.com >
2021-04-09 11:53:06 +02:00
Jan Fajerski
0c468d534d
update kubernetes-mixins
...
Signed-off-by: Jan Fajerski <jfajersk@redhat.com >
2021-04-09 11:52:22 +02:00
Paweł Krupa
de3673a286
Merge pull request #1054 from adinhodovic/add-external-mixin-support
...
jsonnet: Add External mixin lib
2021-04-08 09:11:48 +02:00
Paweł Krupa
874bf089ae
Merge pull request #1074 from ArthurSens/as/gitpodfy
...
Setup gitpod config for ephemeral dev-environments
2021-04-08 09:11:22 +02:00
paulfantom
f81412d05d
jsonnet/kube-prometheus/addons: reduce KSM cardinality by denylisting unused metrics
...
Signed-off-by: paulfantom <pawel@krupa.net.pl >
2021-04-07 14:23:43 +02:00
Paweł Krupa
2ba8d8aca2
Merge pull request #1058 from mansikulkarni96/windows_exporter
2021-04-07 10:07:33 +02:00
Adin Hodovic
0268128bd1
Add External mixin library
...
Add library for mixins
2021-04-06 11:59:03 +02:00
Damien Grisonnet
b59b2c23d8
examples: update platform snippets and doc
...
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
2021-04-06 11:42:29 +02:00
ArthurSens
cf4d2ad524
Setup gitpod config for ephemeral dev-environments
...
Signed-off-by: ArthurSens <arthursens2005@gmail.com >
2021-04-02 01:34:04 +00:00
mansikulkarni96
1c63b6d021
Add relabel_config to replace endpoint address
...
This commit adds a relabeling config to the scrape config of
windows-exporter using the 'replace' action field to replace
the node endpoint address with node name. The windows_exporter
returns endpoint target as node IP but we need it to be node name
to use the prometheus adapter queries and collect resource metrics
information.
2021-03-31 13:29:16 -04:00
Damien Grisonnet
f06175bb3b
jsonnet: add function to apply platform patches
...
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
2021-03-31 18:00:04 +02:00
ArthurSens
069f95148f
Psp should be deployed at the same namespace as kube-prometheus stack
...
Signed-off-by: ArthurSens <arthursens2005@gmail.com >
2021-03-30 19:00:12 +00:00
Frederic Branczyk
f5f72e1b50
Merge pull request #1060 from ArthurSens/as/psp-addon-fixes
...
PodSecurityPolicy uses role instead of clusterRole where posible
2021-03-30 13:33:48 +02:00
mansikulkarni96
7ba0479433
jsonnet: Add windows_exporter queries for adapter
...
This commit includes windows_exporter metrics in the
node queries for the prometheus adapter configuration.
This will help obtain the resource metrics: memory and
CPU for Windows nodes. This change will also help in
displaying metrics reported through the 'kubectl top'
command which currently reports 'unknown' status for
Windows nodes.
2021-03-29 14:55:11 -04:00
Lili Cosic
dafa0f8edd
Merge pull request #1064 from lilic/bump-ksm-rc.1
...
Bump kube-state-metrics to latest kube-state-metrics rc.1
2021-03-29 15:46:04 +02:00
Lili Cosic
0df93109d4
manifests: Regenerate files
2021-03-29 14:32:08 +02:00
Lili Cosic
17b11ae344
jsonnetfile.lock.json: Bump kube-state-metrics to 2.0.0-rc.1
2021-03-29 14:29:59 +02:00
Lili Cosic
af0719e8d8
Merge pull request #1063 from viperstars/main
...
add cluster role to list and watch ingresses in "networking.k8s.io"
2021-03-29 13:29:01 +02:00
viperstars
d1f401a73d
add cluster role to list and watch ingresses in api group "networking.k8s.io"
2021-03-29 14:19:35 +08:00
Frederic Branczyk
003daae495
Merge pull request #1052 from paulfantom/simplify-managed-cluster-addon
...
jsonnet/addons: simplify managed-cluster addon
2021-03-26 19:35:22 +01:00
ArthurSens
c9b52c97f5
PodSecurityPolicy uses role instead of clusterRole where posible
...
Signed-off-by: ArthurSens <arthursens2005@gmail.com >
2021-03-25 20:59:49 +00:00
Paweł Krupa
6497d78f2c
Merge pull request #1023 from paulfantom/deps-update
2021-03-25 21:03:56 +01:00
Paweł Krupa
e3dcbb7fa6
Merge pull request #1059 from dgrisonnet/watchdog-example
...
Update developing examples to use ExampleAlert instead of Watchdog
2021-03-25 20:59:37 +01:00
Damien Grisonnet
8973a90049
examples: use ExampleAlert instead of Watchdog
...
Replace Watchdog alerts part of the `example-group` in some examples by
ExampleAlert alerts to reinforce the fact that this is just an example.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com >
2021-03-25 18:11:56 +01:00
paulfantom
c960da64bb
manifests: regenerate
2021-03-25 14:22:38 +01:00
paulfantom
35a22050e0
*: update dependencies
...
Signed-off-by: paulfantom <pawel@krupa.net.pl >
2021-03-25 14:22:06 +01:00
Paweł Krupa
ea12911e4f
Merge pull request #1041 from lilic/ksm-2.0.0-rc.0
2021-03-25 14:18:27 +01:00
Lili Cosic
4bc91a8303
Merge pull request #1057 from jan--f/update-kubernetes-mixins
...
Update kubernetes mixins
2021-03-25 10:38:55 +01:00
Jan Fajerski
9966c37573
update generated manifests
...
Signed-off-by: Jan Fajerski <jfajersk@redhat.com >
2021-03-24 16:52:30 +01:00
Jan Fajerski
4e5087c665
jsonnet: update kubernetes-mixins
...
Signed-off-by: Jan Fajerski <jfajersk@redhat.com >
2021-03-24 16:51:54 +01:00
Paweł Krupa
ab554c6ecb
Merge pull request #911 from jsturtevant/windows
...
Windows addon
2021-03-23 09:48:25 +01:00
Paweł Krupa
fe1a446b01
Merge pull request #1019 from dgrisonnet/thanos-image
...
examples/thanos-sidecar: fix image url
2021-03-23 09:47:05 +01:00
paulfantom
5d2156ffbf
jsonnet/addons: simplify managed-cluster addon
...
Signed-off-by: paulfantom <pawel@krupa.net.pl >
2021-03-23 09:36:08 +01:00
Paweł Krupa
4d200f29f5
Merge pull request #1022 from lentzi90/update-readme
2021-03-22 13:50:18 +01:00
paulfantom
0bf34a24f8
jsonnet: unify internal configuration field name
...
Signed-off-by: paulfantom <pawel@krupa.net.pl >
2021-03-22 12:48:55 +01:00