diff --git a/charts/synthetic-monitoring-agent/Chart.yaml b/charts/synthetic-monitoring-agent/Chart.yaml index da33468b5d..b873c5557b 100644 --- a/charts/synthetic-monitoring-agent/Chart.yaml +++ b/charts/synthetic-monitoring-agent/Chart.yaml @@ -15,4 +15,4 @@ name: synthetic-monitoring-agent sources: - https://github.com/grafana/synthetic-monitoring-agent type: application -version: 0.5.0 +version: 0.5.1 diff --git a/charts/synthetic-monitoring-agent/README.md b/charts/synthetic-monitoring-agent/README.md index 6dfc8cff94..03776debf4 100644 --- a/charts/synthetic-monitoring-agent/README.md +++ b/charts/synthetic-monitoring-agent/README.md @@ -1,6 +1,6 @@ # synthetic-monitoring-agent -![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.9.3-0-gcd7aadd](https://img.shields.io/badge/AppVersion-v0.9.3--0--gcd7aadd-informational?style=flat-square) +![Version: 0.5.1](https://img.shields.io/badge/Version-0.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.9.3-0-gcd7aadd](https://img.shields.io/badge/AppVersion-v0.9.3--0--gcd7aadd-informational?style=flat-square) Grafana's Synthetic Monitoring application. The agent provides probe functionality and executes network checks for monitoring remote targets. @@ -32,11 +32,6 @@ Kubernetes: `^1.16.0-0` | agent.debug | bool | `false` | Enable / disable debug logging on the agent. | | agent.enableDisconnect | bool | `false` | Enable / disable the HTTP /disconnect endpoint | | agent.verbose | bool | `false` | Enable / disable verbose logging on the agent. | -| autoscaling.enabled | bool | `false` | Enable autoscaling | -| autoscaling.maxReplicas | int | `3` | Maximum autoscaling replicas | -| autoscaling.minReplicas | int | `1` | Minimum autoscaling replicas | -| autoscaling.targetCPUUtilizationPercentage | int | `60` | Target CPU utilisation percentage | -| autoscaling.targetMemoryUtilizationPercentage | string | `nil` | Target memory utilisation percentage | | deploymentStrategy | object | `{}` | See `kubectl explain deployment.spec.strategy` for more ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy | | extraObjects | list | `[]` | Add dynamic manifests via values: | | fullnameOverride | string | `""` | Override the fullname of the chart. | @@ -53,7 +48,6 @@ Kubernetes: `^1.16.0-0` | podLabels | object | `{}` | Labels to add to each pod. | | podSecurityContext | object | `{"fsGroup":65534}` | Security context on the Pod level. | | readinessProbe | object | `{"httpGet":{"path":"/ready","port":"http"}}` | Readiness probe for the agent | -| replicaCount | int | `1` | Number of replicas to use; ignored if `autoscaling.enabled` is set to `true`. | | resources | object | `{}` | Default resources to apply. | | secret.existingSecret | string | `""` | Reference an existing secret for API token | | securityContext | object | `{"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534}` | Security context for the container level. | diff --git a/charts/synthetic-monitoring-agent/templates/deployment.yaml b/charts/synthetic-monitoring-agent/templates/deployment.yaml index ea7b387215..51122ee16a 100644 --- a/charts/synthetic-monitoring-agent/templates/deployment.yaml +++ b/charts/synthetic-monitoring-agent/templates/deployment.yaml @@ -10,9 +10,7 @@ spec: {{- toYaml . | nindent 4 }} {{- end }} minReadySeconds: 10 - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} + replicas: 1 selector: matchLabels: {{- include "synthetic-monitoring-agent.selectorLabels" . | nindent 6 }} diff --git a/charts/synthetic-monitoring-agent/templates/hpa.yaml b/charts/synthetic-monitoring-agent/templates/hpa.yaml deleted file mode 100644 index 213acb9d2a..0000000000 --- a/charts/synthetic-monitoring-agent/templates/hpa.yaml +++ /dev/null @@ -1,28 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "synthetic-monitoring-agent.fullname" . }} - labels: - {{- include "synthetic-monitoring-agent.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "synthetic-monitoring-agent.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/charts/synthetic-monitoring-agent/values.yaml b/charts/synthetic-monitoring-agent/values.yaml index e3d0c15b8d..acfcd66b97 100644 --- a/charts/synthetic-monitoring-agent/values.yaml +++ b/charts/synthetic-monitoring-agent/values.yaml @@ -15,9 +15,6 @@ agent: # -- Enable / disable verbose logging on the agent. verbose: false -# -- Number of replicas to use; ignored if `autoscaling.enabled` is set to `true`. -replicaCount: 1 - image: # -- Base registry to pull the container image from. registry: docker.io @@ -72,18 +69,6 @@ resources: # cpu: 200m # memory: 512Mi -autoscaling: - # -- Enable autoscaling - enabled: false - # -- Minimum autoscaling replicas - minReplicas: 1 - # -- Maximum autoscaling replicas - maxReplicas: 3 - # -- Target CPU utilisation percentage - targetCPUUtilizationPercentage: 60 - # -- Target memory utilisation percentage - targetMemoryUtilizationPercentage: - # -- Liveness probe for the agent livenessProbe: httpGet: