diff --git a/deploy/k8s/chart/Chart.yaml b/deploy/k8s/chart/Chart.yaml index f7fc618..045908a 100644 --- a/deploy/k8s/chart/Chart.yaml +++ b/deploy/k8s/chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 description: A Helm Chart for cortex-tenant name: cortex-tenant -version: 0.1.0 # This is the chart version -appVersion: 1.10.1 # version number of the application being deployed. +version: 0.2.0 # This is the chart version +appVersion: 1.11.0 # version number of the application being deployed. type: application diff --git a/deploy/k8s/chart/README.md b/deploy/k8s/chart/README.md index 67db690..bc45229 100644 --- a/deploy/k8s/chart/README.md +++ b/deploy/k8s/chart/README.md @@ -1,6 +1,6 @@ # cortex-tenant -![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.10.1](https://img.shields.io/badge/AppVersion-1.10.1-informational?style=flat-square) +![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.11.0](https://img.shields.io/badge/AppVersion-1.11.0-informational?style=flat-square) A Helm Chart for cortex-tenant @@ -9,6 +9,7 @@ A Helm Chart for cortex-tenant | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | +| autoscaling.enabled | bool | `true` | | | autoscaling.maxReplica | int | `3` | | | autoscaling.minReplica | int | `1` | | | autoscaling.targetCPUUtilizationPercentage | int | `50` | | diff --git a/deploy/k8s/chart/templates/autoscaling.yaml b/deploy/k8s/chart/templates/autoscaling.yaml index 270e441..679a273 100644 --- a/deploy/k8s/chart/templates/autoscaling.yaml +++ b/deploy/k8s/chart/templates/autoscaling.yaml @@ -1,3 +1,4 @@ +{{- if .Values.autoscaling.enabled -}} apiVersion: autoscaling/v2beta2 kind: HorizontalPodAutoscaler metadata: @@ -28,3 +29,4 @@ spec: type: Utilization averageUtilization: {{ . }} {{- end }} +{{- end }} diff --git a/deploy/k8s/chart/values.yaml b/deploy/k8s/chart/values.yaml index cf0bde0..a297ea8 100644 --- a/deploy/k8s/chart/values.yaml +++ b/deploy/k8s/chart/values.yaml @@ -12,6 +12,7 @@ service: targetPort: 8080 autoscaling: + enabled: true # If HorizontalPodAutoscaler must be enabled minReplica: 1 # Min number of pod replica autoscaled maxReplica: 3 # Max number of pod replica autoscaled targetMemoryAverageValue: 100Mi diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..0335889 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,5 @@ +# Building + +From this directory, run the following commands: +- `helm package ../deploy/k8s/chart` +- `helm repo index .` diff --git a/docs/cortex-tenant-0.2.0.tgz b/docs/cortex-tenant-0.2.0.tgz new file mode 100644 index 0000000..a81c4a4 Binary files /dev/null and b/docs/cortex-tenant-0.2.0.tgz differ diff --git a/docs/index.yaml b/docs/index.yaml index ab02f16..de52288 100644 --- a/docs/index.yaml +++ b/docs/index.yaml @@ -1,9 +1,19 @@ apiVersion: v1 entries: cortex-tenant: + - apiVersion: v2 + appVersion: 1.11.0 + created: "2023-07-03T12:50:35.512296578+02:00" + description: A Helm Chart for cortex-tenant + digest: 8b9caea0e1774a6c8f3e627a63386f532498ca5f410927c702380692e5d20b61 + name: cortex-tenant + type: application + urls: + - cortex-tenant-0.2.0.tgz + version: 0.2.0 - apiVersion: v2 appVersion: 1.10.1 - created: "2023-05-30T12:27:42.204467668+02:00" + created: "2023-07-03T12:50:35.511825114+02:00" description: A Helm Chart for cortex-tenant digest: eabef3ad16e555543e32d9308994f76679e5fa54371cccd3957112f33a28a59e name: cortex-tenant @@ -11,4 +21,4 @@ entries: urls: - cortex-tenant-0.1.0.tgz version: 0.1.0 -generated: "2023-05-30T12:27:42.203546177+02:00" +generated: "2023-07-03T12:50:35.511245964+02:00"