Skip to content

Commit

Permalink
feat: Add priorityClassName to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
adberger committed Oct 18, 2024
1 parent ca484dd commit 03c840a
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 14 deletions.
2 changes: 1 addition & 1 deletion deploy/k8s/chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A Helm Chart for cortex-tenant
name: cortex-tenant
version: 0.6.0 # This is the chart version
version: 0.7.0 # This is the chart version
appVersion: 1.13.0 # version number of the application being deployed.
type: application
sources:
Expand Down
6 changes: 4 additions & 2 deletions deploy/k8s/chart/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cortex-tenant

![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.13.0](https://img.shields.io/badge/AppVersion-1.13.0-informational?style=flat-square)
![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.13.0](https://img.shields.io/badge/AppVersion-1.13.0-informational?style=flat-square)

A Helm Chart for cortex-tenant

Expand Down Expand Up @@ -30,6 +30,7 @@ A Helm Chart for cortex-tenant
| config.log_level | string | `"warn"` | Log level (env: `CT_LOG_LEVEL`) |
| config.log_response_errors | bool | `true` | If true response codes from metrics backend will be logged to stdout. This setting can be used to suppress errors which can be quite verbose like 400 code - out-of-order samples or 429 on hitting ingestion limits Also, those are already reported by other services like Cortex/Mimir distributors and ingesters (env: `CT_LOG_RESPONSE_ERRORS`) |
| config.max_connection_duration | string | `"0s"` | Maximum duration to keep outgoing connections alive (to Cortex/Mimir) Useful for resetting L4 load-balancer state Use 0 to keep them indefinitely (env: `CT_MAX_CONN_DURATION`) |
| config.max_conns_per_host | int | `64` | This parameter sets the limit for the count of outgoing concurrent connections to Cortex / Mimir. By default it's 64 and if all of these connections are busy you will get errors when pushing from Prometheus. If your `target` is a DNS name that resolves to several IPs then this will be a per-IP limit. (env: `CT_MAX_CONNS_PER_HOST`) |
| config.metadata | bool | `false` | Whether to forward metrics metadata from Prometheus to Cortex Since metadata requests have no timeseries in them - we cannot divide them into tenants So the metadata requests will be sent to the default tenant only, if one is not defined - they will be dropped (env: `CT_METADATA`) |
| config.target | string | `"http://cortex-distributor.cortex.svc:8080/api/v1/push"` | Where to send the modified requests (Cortex) (env: `CT_TARGET`) |
| config.tenant.accept_all | bool | `false` | Enable if you want all metrics from Prometheus to be accepted with a 204 HTTP code regardless of the response from Cortex. This can lose metrics if Cortex is throwing rejections. (env: `CT_TENANT_ACCEPT_ALL`) |
Expand Down Expand Up @@ -60,6 +61,7 @@ A Helm Chart for cortex-tenant
| podDisruptionBudget.minAvailable | int | `1` | Minimum number of pods that must remain scheduled |
| podSecurityContext | object | `{}` | [Security Context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context) |
| podTopologySpreadConstraints | list | `[]` | [Pod Topology Spread Constraints](https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/) |
| priorityClassName | string | `""` | [Priority Class](https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass) |
| readinessProbe.enabled | bool | `false` | Enable the readiness probe |
| readinessProbe.failureThreshold | int | `3` | Readiness probe failure threshold |
| readinessProbe.initialDelaySeconds | int | `10` | Initial delay seconds |
Expand Down Expand Up @@ -90,4 +92,4 @@ A Helm Chart for cortex-tenant
| tolerations | list | `[]` | [Taints and Tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
3 changes: 3 additions & 0 deletions deploy/k8s/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ spec:
- configMap:
name: {{ include "cortex-tenant.fullname" . }}-configmap
name: config-file
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions deploy/k8s/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ podSecurityContext: {}
# -- [Security Context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context)
securityContext: {}

# -- [Priority Class](https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass)
priorityClassName: ""

# -- [Node Selection](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node)
nodeSelector: {}

Expand Down
Binary file added docs/cortex-tenant-0.7.0.tgz
Binary file not shown.
34 changes: 23 additions & 11 deletions docs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@ entries:
cortex-tenant:
- apiVersion: v2
appVersion: 1.13.0
created: "2024-06-13T16:06:56.469358446+02:00"
created: "2024-10-18T12:00:21.933807+02:00"
description: A Helm Chart for cortex-tenant
digest: 5c8329d569b12900b6343443f43b8ffa976e23b0c2175dcaeade51cb11ae881d
name: cortex-tenant
sources:
- https://github.com/blind-oracle/cortex-tenant
type: application
urls:
- cortex-tenant-0.7.0.tgz
version: 0.7.0
- apiVersion: v2
appVersion: 1.13.0
created: "2024-10-18T12:00:21.933422+02:00"
description: A Helm Chart for cortex-tenant
digest: b2025be4ae67a5b460dca8529adc6a7bc5b3dda1864e12cff759283ad6aa5f3d
name: cortex-tenant
Expand All @@ -15,7 +27,7 @@ entries:
version: 0.6.0
- apiVersion: v2
appVersion: 1.13.0
created: "2024-06-13T16:06:56.467560627+02:00"
created: "2024-10-18T12:00:21.933054+02:00"
description: A Helm Chart for cortex-tenant
digest: f55d2d0927459b1d30aa55ac280319896daf5aa63b48cc2f4664e7649ac2c76c
name: cortex-tenant
Expand All @@ -27,7 +39,7 @@ entries:
version: 0.5.0
- apiVersion: v2
appVersion: 1.13.0
created: "2024-06-13T16:06:56.465389945+02:00"
created: "2024-10-18T12:00:21.93254+02:00"
description: A Helm Chart for cortex-tenant
digest: f2b3499377fd5a34c6893e67ab79854c5c8c835b229a7cc7a67e0666cca9ab29
name: cortex-tenant
Expand All @@ -39,7 +51,7 @@ entries:
version: 0.4.2
- apiVersion: v2
appVersion: 1.11.0
created: "2024-06-13T16:06:56.463119599+02:00"
created: "2024-10-18T12:00:21.931263+02:00"
description: A Helm Chart for cortex-tenant
digest: 60131d246dca1ead2fea8a2c188f25a5fe3c4d90368ba091a4bd0e4e8e6dcceb
name: cortex-tenant
Expand All @@ -51,7 +63,7 @@ entries:
version: 0.4.0
- apiVersion: v2
appVersion: 1.11.0
created: "2024-06-13T16:06:56.461677669+02:00"
created: "2024-10-18T12:00:21.930956+02:00"
description: A Helm Chart for cortex-tenant
digest: 56abb06ce3f646b94932d36b0d4ed5e5386ec390ebfd7d9110036291086d6f39
name: cortex-tenant
Expand All @@ -61,7 +73,7 @@ entries:
version: 0.3.2
- apiVersion: v2
appVersion: 1.11.0
created: "2024-06-13T16:06:56.460580688+02:00"
created: "2024-10-18T12:00:21.930723+02:00"
description: A Helm Chart for cortex-tenant
digest: 834b006e449ae97219799bfa3b7bd274aa386978802dbd49279258f534cc4da5
name: cortex-tenant
Expand All @@ -71,7 +83,7 @@ entries:
version: 0.3.1
- apiVersion: v2
appVersion: 1.11.0
created: "2024-06-13T16:06:56.459501641+02:00"
created: "2024-10-18T12:00:21.930485+02:00"
description: A Helm Chart for cortex-tenant
digest: cf12ab22dd0973e94e15d8246f66ae35738dadfc489952f919ed326a1f7eed5a
name: cortex-tenant
Expand All @@ -81,7 +93,7 @@ entries:
version: 0.3.0
- apiVersion: v2
appVersion: 1.11.0
created: "2024-06-13T16:06:56.458421254+02:00"
created: "2024-10-18T12:00:21.930234+02:00"
description: A Helm Chart for cortex-tenant
digest: c967d4dea6ff8ae827133876f588d22bfa51d10168e4bca57f161b7ab6097c7c
name: cortex-tenant
Expand All @@ -91,7 +103,7 @@ entries:
version: 0.2.1
- apiVersion: v2
appVersion: 1.11.0
created: "2024-06-13T16:06:56.457587154+02:00"
created: "2024-10-18T12:00:21.930023+02:00"
description: A Helm Chart for cortex-tenant
digest: 8b9caea0e1774a6c8f3e627a63386f532498ca5f410927c702380692e5d20b61
name: cortex-tenant
Expand All @@ -101,12 +113,12 @@ entries:
version: 0.2.0
- apiVersion: v2
appVersion: 1.10.1
created: "2024-06-13T16:06:56.456718494+02:00"
created: "2024-10-18T12:00:21.929794+02:00"
description: A Helm Chart for cortex-tenant
digest: eabef3ad16e555543e32d9308994f76679e5fa54371cccd3957112f33a28a59e
name: cortex-tenant
type: application
urls:
- cortex-tenant-0.1.0.tgz
version: 0.1.0
generated: "2024-06-13T16:06:56.455526763+02:00"
generated: "2024-10-18T12:00:21.92949+02:00"

0 comments on commit 03c840a

Please sign in to comment.