From 9da9675fa0512eda9cf35673507fdb4d866a0281 Mon Sep 17 00:00:00 2001 From: Daniel Sinai Date: Wed, 18 Dec 2024 13:50:47 +0200 Subject: [PATCH] chart: allowing to change replicaset of agent (#155) * chart: allowing to change replicaset of agent * port-agent: added readme --- charts/port-agent/Chart.yaml | 2 +- charts/port-agent/README.md | 1 + charts/port-agent/templates/deployment.yaml | 2 +- charts/port-agent/values.yaml | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/port-agent/Chart.yaml b/charts/port-agent/Chart.yaml index 3e9a83f..9def198 100644 --- a/charts/port-agent/Chart.yaml +++ b/charts/port-agent/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: port-agent description: A Helm chart for Port Agent type: application -version: 0.8.5 +version: 0.8.6 appVersion: "v0.7.8" home: https://getport.io/ sources: diff --git a/charts/port-agent/README.md b/charts/port-agent/README.md index d8ea992..f92177c 100644 --- a/charts/port-agent/README.md +++ b/charts/port-agent/README.md @@ -49,6 +49,7 @@ The following table lists the configuration parameters of the `port-agent` chart | `image.repository` | Image repository | `ghcr.io/port-labs/port-agent` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.tag` | Image tag | `""` | +| `replicaCount` | Number of port-agent replicas (ensure Kafka topic has enough partitions when scaling up) | `1` | | `imagePullSecrets` | Image pull secrets | `[]` | | `nameOverride` | Chart name override | `""` | | `fullnameOverride` | Fully qualified app name override | `""` | diff --git a/charts/port-agent/templates/deployment.yaml b/charts/port-agent/templates/deployment.yaml index 513fc2c..40d471a 100644 --- a/charts/port-agent/templates/deployment.yaml +++ b/charts/port-agent/templates/deployment.yaml @@ -7,7 +7,7 @@ metadata: spec: strategy: type: {{ .Values.rolloutStrategy }} - replicas: 1 + replicas: {{ .Values.replicaCount }} selector: matchLabels: {{- include "port-agent.selectorLabels" . | nindent 6 }} diff --git a/charts/port-agent/values.yaml b/charts/port-agent/values.yaml index 8e753a3..71bc42e 100644 --- a/charts/port-agent/values.yaml +++ b/charts/port-agent/values.yaml @@ -3,6 +3,9 @@ image: pullPolicy: IfNotPresent tag: "" +# If you increase this number, you will need to make sure that the kafka topic has enough partitions +replicaCount: 1 + imagePullSecrets: [] nameOverride: "" fullnameOverride: ""