Skip to content

Commit

Permalink
Add HPA Support for all Pyroscope components (grafana#3157)
Browse files Browse the repository at this point in the history
* Add HPA Support for all Pyroscope components

Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>

* Check make helm/check

Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>

* Add Example

Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>

* Add tests for HPA based autoscaling

Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>

* Lint Template COde

Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>

---------

Signed-off-by: Drumil Patel <drumilpatel720@gmail.com>
  • Loading branch information
weastel authored Apr 4, 2024
1 parent e046dcd commit 4fdd876
Show file tree
Hide file tree
Showing 6 changed files with 3,396 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,15 @@ helm/check: $(BIN)/kubeconform $(BIN)/helm
$(BIN)/helm template -n default --kube-version "1.23.0" pyroscope-dev ./operations/pyroscope/helm/pyroscope/ --values operations/pyroscope/helm/pyroscope/values-micro-services.yaml \
| tee ./operations/pyroscope/helm/pyroscope/rendered/micro-services.yaml \
| $(BIN)/kubeconform --summary --strict --kubernetes-version 1.23.0
$(BIN)/helm template -n default --kube-version "1.23.0" pyroscope-dev ./operations/pyroscope/helm/pyroscope/ --values operations/pyroscope/helm/pyroscope/values-micro-services-hpa.yaml \
| tee ./operations/pyroscope/helm/pyroscope/rendered/micro-services-hpa.yaml \
| $(BIN)/kubeconform --summary --strict --kubernetes-version 1.23.0
cat operations/pyroscope/helm/pyroscope/values-micro-services.yaml \
| go run ./tools/yaml-to-json \
> ./operations/pyroscope/jsonnet/values-micro-services.json
cat operations/pyroscope/helm/pyroscope/values-micro-services-hpa.yaml \
| go run ./tools/yaml-to-json \
> ./operations/pyroscope/jsonnet/values-micro-services-hpa.json
cat operations/pyroscope/helm/pyroscope/values.yaml \
| go run ./tools/yaml-to-json \
> ./operations/pyroscope/jsonnet/values.json
Expand Down
Loading

0 comments on commit 4fdd876

Please sign in to comment.