Skip to content

Commit 23ebc43

Browse files
committed
[SRE-SYM][synthetic-monitoring-agent] add extraEnv
Signed-off-by: houcine.najib <[email protected]>
1 parent c869333 commit 23ebc43

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

charts/synthetic-monitoring-agent/README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# synthetic-monitoring-agent
22

3-
![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: v0.29.3](https://img.shields.io/badge/AppVersion-v0.29.3-informational?style=flat-square)
3+
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.34.4](https://img.shields.io/badge/AppVersion-v0.34.4-informational?style=flat-square)
44

55
Grafana's Synthetic Monitoring application. The agent provides probe functionality and executes network checks for monitoring remote targets.
66

@@ -18,10 +18,6 @@ Grafana's Synthetic Monitoring application. The agent provides probe functionali
1818

1919
* <https://github.com/grafana/synthetic-monitoring-agent>
2020

21-
## Requirements
22-
23-
Kubernetes: `^1.16.0-0`
24-
2521
## Values
2622

2723
| Key | Type | Default | Description |
@@ -38,6 +34,7 @@ Kubernetes: `^1.16.0-0`
3834
| autoscaling.targetCPUUtilizationPercentage | int | `60` | Target CPU utilisation percentage |
3935
| autoscaling.targetMemoryUtilizationPercentage | string | `nil` | Target memory utilisation percentage |
4036
| deploymentStrategy | object | `{}` | See `kubectl explain deployment.spec.strategy` for more ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy |
37+
| extraEnv | list | `[]` | Environment variables to add to the agent |
4138
| extraObjects | list | `[]` | Add dynamic manifests via values: |
4239
| fullnameOverride | string | `""` | Override the fullname of the chart. |
4340
| hostAliases | list | `[]` | hostAliases to add |
@@ -51,12 +48,12 @@ Kubernetes: `^1.16.0-0`
5148
| nodeSelector | object | `{}` | Node labels for pod assignment. |
5249
| podAnnotations | object | `{}` | Annotations to add to each pod. |
5350
| podLabels | object | `{}` | Labels to add to each pod. |
54-
| podSecurityContext | object | `{"fsGroup":65534}` | Security context on the Pod level. |
51+
| podSecurityContext | object | `{"fsGroup":12345}` | Security context on the Pod level. |
5552
| readinessProbe | object | `{"httpGet":{"path":"/ready","port":"http"}}` | Readiness probe for the agent |
5653
| replicaCount | int | `1` | Number of replicas to use; ignored if `autoscaling.enabled` is set to `true`. |
5754
| resources | object | `{}` | Default resources to apply. |
5855
| secret.existingSecret | string | `""` | Reference an existing secret for API token |
59-
| securityContext | object | `{"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534}` | Security context for the container level. |
56+
| securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"add":["NET_RAW"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":12345,"seccompProfile":{"type":"RuntimeDefault"}}` | Security context for the container level. |
6057
| service.annotations | object | `{}` | Annotations for the service |
6158
| service.port | int | `4050` | Service port. |
6259
| service.type | string | `"ClusterIP"` | Type of service to create. |
@@ -77,4 +74,4 @@ Kubernetes: `^1.16.0-0`
7774
| tolerations | list | `[]` | List of node taints to tolerate. |
7875

7976
----------------------------------------------
80-
Autogenerated from chart metadata using [helm-docs v1.8.1](https://github.com/norwoodj/helm-docs/releases/v1.8.1)
77+
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)

charts/synthetic-monitoring-agent/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ spec:
6868
secretKeyRef:
6969
key: api-token
7070
name: {{ (tpl .Values.secret.existingSecret .) | default (include "synthetic-monitoring-agent.fullname" .) }}
71+
{{- with .Values.extraEnv }}
72+
{{- toYaml . | nindent 12 }}
73+
{{- end }}
7174
name: {{ .Chart.Name }}
7275
securityContext:
7376
{{- toYaml .Values.securityContext | nindent 12 }}

charts/synthetic-monitoring-agent/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ securityContext:
5959
add:
6060
- NET_RAW
6161
readOnlyRootFilesystem: true
62+
allowPrivilegeEscalation: false
6263
runAsNonRoot: true
6364
runAsUser: 12345
65+
seccompProfile:
66+
type: RuntimeDefault
6467

6568
# -- Default resources to apply.
6669
resources:
@@ -149,6 +152,9 @@ affinity: {}
149152
# -- Add dynamic manifests via values:
150153
extraObjects: []
151154

155+
# -- Environment variables to add to the agent
156+
extraEnv: []
157+
152158
secret:
153159
# -- Reference an existing secret for API token
154160
existingSecret: ""

0 commit comments

Comments
 (0)