-
Notifications
You must be signed in to change notification settings - Fork 649
Added values file for demo #3813
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
base: main
Are you sure you want to change the base?
Changes from all commits
eb58000
c0bbbb4
8b6b815
b051e27
83c7e4d
977dc3e
d305e89
3ad1842
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -403,13 +403,13 @@ helm/check: $(BIN)/kubeconform $(BIN)/helm | |
$(BIN)/helm template -n default --kube-version "1.23.0" pyroscope-dev ./operations/pyroscope/helm/pyroscope/ \ | ||
| tee ./operations/pyroscope/helm/pyroscope/rendered/single-binary.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.yaml \ | ||
$(BIN)/helm template -n default --kube-version "1.23.0" pyroscope-dev ./operations/pyroscope/helm/pyroscope/ --values operations/pyroscope/helm/pyroscope/values-micro-services-small.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 \ | ||
cat operations/pyroscope/helm/pyroscope/values-micro-services-small.yaml\ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This causes the values of |
||
| go run ./tools/yaml-to-json \ | ||
> ./operations/pyroscope/jsonnet/values-micro-services.json | ||
cat operations/pyroscope/helm/pyroscope/values-micro-services-hpa.yaml \ | ||
|
@@ -429,7 +429,7 @@ deploy: $(BIN)/kind $(BIN)/helm docker-image/pyroscope/build | |
deploy-micro-services: $(BIN)/kind $(BIN)/helm docker-image/pyroscope/build | ||
# Ensure to delete existing service, that has been created manually by the deploy target | ||
kubectl delete svc --field-selector metadata.name=pyroscope-micro-services-query-frontend -l app.kubernetes.io/managed-by!=Helm || true | ||
$(call deploy,pyroscope-micro-services,--values=operations/pyroscope/helm/pyroscope/values-micro-services.yaml --set pyroscope.components.querier.resources=null --set pyroscope.components.distributor.resources=null --set pyroscope.components.ingester.resources=null --set pyroscope.components.store-gateway.resources=null --set pyroscope.components.compactor.resources=null) | ||
$(call deploy,pyroscope-micro-services,--values=operations/pyroscope/helm/pyroscope/values-micro-services-small.yaml--set pyroscope.components.querier.resources=null --set pyroscope.components.distributor.resources=null --set pyroscope.components.ingester.resources=null --set pyroscope.components.store-gateway.resources=null --set pyroscope.components.compactor.resources=null) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. looks like we are missing a space here before the first |
||
|
||
.PHONY: deploy-monitoring | ||
deploy-monitoring: $(BIN)/tk $(BIN)/kind tools/monitoring/environments/default/spec.json | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Default values for pyroscope. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
pyroscope: | ||
extraArgs: | ||
store-gateway.sharding-ring.replication-factor: "3" | ||
components: | ||
querier: | ||
kind: Deployment | ||
replicaCount: 3 | ||
resources: | ||
limits: | ||
memory: 1Gi | ||
requests: | ||
memory: 256Mi | ||
cpu: 1 | ||
query-frontend: | ||
kind: Deployment | ||
replicaCount: 2 | ||
resources: | ||
limits: | ||
memory: 1Gi | ||
requests: | ||
memory: 256Mi | ||
cpu: 100m | ||
query-scheduler: | ||
kind: Deployment | ||
replicaCount: 2 | ||
resources: | ||
limits: | ||
memory: 1Gi | ||
requests: | ||
memory: 256Mi | ||
cpu: 100m | ||
distributor: | ||
kind: Deployment | ||
replicaCount: 2 | ||
resources: | ||
limits: | ||
memory: 1Gi | ||
requests: | ||
memory: 256Mi | ||
cpu: 500m | ||
ingester: | ||
kind: StatefulSet | ||
replicaCount: 3 | ||
terminationGracePeriodSeconds: 600 | ||
resources: | ||
limits: | ||
memory: 2Gi | ||
requests: | ||
memory: 512Mi | ||
cpu: 200m | ||
compactor: | ||
kind: StatefulSet | ||
replicaCount: 3 | ||
terminationGracePeriodSeconds: 1200 | ||
persistence: | ||
enabled: false | ||
resources: | ||
limits: | ||
memory: 2Gi | ||
requests: | ||
memory: 512Mi | ||
cpu: 200m | ||
store-gateway: | ||
kind: StatefulSet | ||
replicaCount: 3 | ||
persistence: | ||
# The store-gateway needs not need persistent storage, but we still run it as a StatefulSet | ||
# This is to avoid having blocks of data being | ||
enabled: false | ||
resources: | ||
limits: | ||
memory: 2Gi | ||
requests: | ||
memory: 512Mi | ||
cpu: 200m | ||
readinessProbe: | ||
# The store gateway can be configured to wait on startup for ring stability to be reached before it becomes | ||
# ready. See the `store-gateway.sharding-ring.wait-stability-min-duration` server argument for more information. | ||
# | ||
# Depending on this flag and the number of tenants + blocks that need to be synced on startup, pods can take | ||
# some time to become ready. This value can be used to ensure Kubernetes waits long enough and reduce errors. | ||
initialDelaySeconds: 60 | ||
tenant-settings: | ||
kind: Deployment | ||
replicaCount: 1 | ||
resources: | ||
limits: | ||
memory: 4Gi | ||
requests: | ||
memory: 256Mi | ||
cpu: 100m | ||
ad-hoc-profiles: | ||
kind: Deployment | ||
replicaCount: 1 | ||
resources: | ||
limits: | ||
memory: 1Gi | ||
requests: | ||
memory: 256Mi | ||
cpu: 100m | ||
minio: | ||
enabled: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we replaced the rendered values-micro-services.yaml file, instead of creating a new one for
-small
. Could you restore the original line here and add a newhelm template
call for the-small
file?