Skip to content

Commit f71efa6

Browse files
committed
chart: add static replicas count
1 parent 92d2564 commit f71efa6

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

deploy/k8s/chart/Chart.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ name: cortex-tenant
44
version: 0.3.2 # This is the chart version
55
appVersion: 1.11.0 # version number of the application being deployed.
66
type: application
7+
sources:
8+
- https://github.com/blind-oracle/cortex-tenant

deploy/k8s/chart/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
A Helm Chart for cortex-tenant
66

7+
## Source Code
8+
9+
* <https://github.com/blind-oracle/cortex-tenant>
10+
711
## Values
812

913
| Key | Type | Default | Description |
@@ -48,6 +52,7 @@ A Helm Chart for cortex-tenant
4852
| podDisruptionBudget.minAvailable | int | `1` | Minimum number of pods that must remain scheduled |
4953
| podSecurityContext | object | `{}` | [Security Context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context) |
5054
| podTopologySpreadConstraints | list | `[]` | [Pod Topology Spread Constraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/) |
55+
| replicas | int | `1` | Number of replicas. Ignored if `autoscaling.enabled` is true |
5156
| resources.limits | object | `{"memory":"256Mi"}` | Resources limits |
5257
| resources.requests | object | `{"cpu":"100m","memory":"128Mi"}` | Resources requests |
5358
| securityContext | object | `{}` | [Security Context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context) |
@@ -71,4 +76,4 @@ A Helm Chart for cortex-tenant
7176
| tolerations | list | `[]` | [Taints and Tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) |
7277

7378
----------------------------------------------
74-
Autogenerated from chart metadata using [helm-docs v1.11.2](https://github.com/norwoodj/helm-docs/releases/v1.11.2)
79+
Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)

deploy/k8s/chart/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ metadata:
99
{{- toYaml . | nindent 4 }}
1010
{{- end }}
1111
spec:
12+
{{- if not .Values.autoscaling.enabled }}
13+
replicas: {{ .Values.replicas }}
14+
{{- end }}
1215
selector:
1316
matchLabels:
1417
{{- include "cortex-tenant.selectorLabels" . | nindent 6 }}

deploy/k8s/chart/values.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ service:
1919
# The target port to which traffic is forwarded
2020
targetPort: 8080
2121

22+
# -- Number of replicas. Ignored if `autoscaling.enabled` is true
23+
replicas: 1
24+
2225
autoscaling:
2326
# -- If enabled, HorizontalPodAutoscaler resources are created
2427
enabled: true
@@ -186,7 +189,7 @@ serviceMonitor:
186189
# https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
187190
# (defines `metric_relabel_configs`)
188191
metricRelabelings: []
189-
# --ServiceMonitor will add labels from the service to the Prometheus metric
192+
# -- ServiceMonitor will add labels from the service to the Prometheus metric
190193
# https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitorspec
191194
targetLabels: []
192195
# -- ServiceMonitor will use http by default, but you can pick https as well

0 commit comments

Comments
 (0)