* Defining a variable for listen port
Signed-off-by: Ali Sattari <ali.sattari@gmail.com>
* Bumping the version properly
Signed-off-by: Ali Sattari <ali.sattari@gmail.com>
Commit b7afaf9d88 ("do not create
apiservice when not needed") from PR #20883 disabled the custom API
Service when no custom rules are used. However, we also need to not
deploy the cluster role as it has no use.
Signed-off-by: Markos Chandras <markos@chandras.me>
* Allow prometheus-adapter to start in hostNetwork mode
Signed-off-by: Marco Amador <amador.marco@gmail.com>
* Bump chart version
Signed-off-by: Marco Amador <amador.marco@gmail.com>
* [stable/prometheus-adapter] Added pod annotations to chart. Upgraded chart to latest version of image
Signed-off-by: Aaron Mell <amell@lumindigital.com>
* [stable/prometheus-adapter] Added pod annotations to chart. Upgraded chart to latest version of image
Signed-off-by: Aaron Mell <amell@lumindigital.com>
* Fixing code review issues
Signed-off-by: Aaron Mell <amell@lumindigital.com>
* Removed v from chart.yaml, changed indent to nindent. Added trim to prevent extra line after annotation.
Signed-off-by: Aaron Mell <amell@lumindigital.com>
* Signed-off-by: Aaron Mell <amell@lumindigital.com>
* [stable/prometheus-adapter] add new resourceRules
prometheus-adapter supports resourceRules. Enabling this allows serving metrics on metrics.k8s.io/v1beta1, where the HPA queries for CPU and mem metrics.
Signed-off-by: Dimitri Koshkin <dimitri.koshkin@gmail.com>
* [stable/prometheus-adapter] bump interval to 3m
Signed-off-by: Dimitri Koshkin <dimitri.koshkin@gmail.com>
* [stable/prometheus-adapter] conditionally register external metrics API (#13716)
The prometheus-adapter will NOT serve external metrics API if
`externalRules` section is not specified. See this code:
https://github.com/DirectXMan12/k8s-prometheus-adapter/blob/v0.5.0/cmd/adapter/adapter.go#L177
In that case, we cannot bindly register the external metrics API.
Otherwise, we might see issues described in #13716. This patch fixed the
issue by conditionally register the external metrics API.
Fixes#13716
Signed-off-by: Jie Yu <yujie.jay@gmail.com>
* [stable/prometheus-adapter] bump chart version to 1.0.3
Bump the chart version to 1.0.3 due to the fix of #13716.
Signed-off-by: Jie Yu <yujie.jay@gmail.com>
* [stable/prometheus-adapter] use 'and' to combine template directives
To address the review comments.
Signed-off-by: Jie Yu <yujie.jay@gmail.com>
* [stable/prometheus-adapter] add ci test values
To improve the test coverage.
Signed-off-by: Jie Yu <yujie.jay@gmail.com>
* prometheus-adapter: allow to set custom prometheus path
Signed-off-by: Alexander Lyashko <aurx@mail.ru>
* prometheus-adapter: bump version
Signed-off-by: Alexander Lyashko <aurx@mail.ru>
* prometheus-adapter: Bump version again, to make semantic versioning happy
Signed-off-by: Alexander Lyashko <aurx@mail.ru>
* Rework: omit port info at all if port is 0
Signed-off-by: Alexander Lyashko <aurx@mail.ru>
* README: Remove stale path description
Signed-off-by: Alexander Lyashko <aurx@mail.ru>
* Bump prometheus-adapter chart version
Signed-off-by: Alexander Lyashko <aurx@mail.ru>
- podSecurityContext has moved to a separate object
- pass the likely security deescalations to the container sec context
Signed-off-by: Drew Wells <drew.wells00@gmail.com>
* Adding support for externally defined adapter rules
Signed-off-by: Justin McCarty <justin.mccarty@syapse.com>
* Adding comment in values for the existing rules entry
Signed-off-by: Justin McCarty <justin.mccarty@syapse.com>
* Removing trailing space
Signed-off-by: Justin McCarty <justin.mccarty@syapse.com>
* [stable/prometheus-adapter] Add checksum of configMap as annotation
- This adds checksum/config to the annotations which has sha256sum of
the file custom-metrics-configmap.yaml
- This does the rolling update of the deployment when user does helm
upgrade and there are changes to the configMap, so the adapter will
pick up the latest changes in the config file
- ref:
https://docs.helm.sh/charts_tips_and_tricks/#automatically-roll-deployments-when-configmaps-or-secrets-change
- Bump chart version
Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
* [stable/prometheus-adapter] Bump version to 0.2.0
Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>