Skip to content

Commit

Permalink
Merge pull request #2548 from YuleZ/hostAliases_for_synthetic-monitor…
Browse files Browse the repository at this point in the history
…ing-agent

[synthetic-monitoring-agent] Host aliases for synthetic monitoring agent
  • Loading branch information
zanhsieh authored Aug 1, 2023
2 parents 82cae10 + a0051fa commit 7842a41
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/synthetic-monitoring-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ name: synthetic-monitoring-agent
sources:
- https://github.com/grafana/synthetic-monitoring-agent
type: application
version: 0.1.0
version: 0.2.0
3 changes: 2 additions & 1 deletion charts/synthetic-monitoring-agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# synthetic-monitoring-agent

![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: v0.9.3-0-gcd7aadd](https://img.shields.io/badge/AppVersion-v0.9.3--0--gcd7aadd-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: 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.

Expand Down Expand Up @@ -39,6 +39,7 @@ Kubernetes: `^1.16.0-0`
| autoscaling.targetMemoryUtilizationPercentage | string | `nil` | Target memory utilisation percentage |
| extraObjects | list | `[]` | Add dynamic manifests via values: |
| fullnameOverride | string | `""` | Override the fullname of the chart. |
| hostAliases | list | `[]` | hostAliases to add |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
| image.registry | string | `"docker.io"` | Base registry to pull the container image from. |
| image.repository | string | `"grafana/synthetic-monitoring-agent"` | Base repository for container image. |
Expand Down
4 changes: 4 additions & 0 deletions charts/synthetic-monitoring-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ template "synthetic-monitoring-agent.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
{{- if .Values.priorityClassName }}
Expand Down
5 changes: 5 additions & 0 deletions charts/synthetic-monitoring-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ image:

# -- Docker registry secret names as an array.
imagePullSecrets: []
# -- hostAliases to add
hostAliases: []
# - ip: 1.2.3.4
# hostnames:
# - domain.tld
# -- Override the name of the chart.
nameOverride: ""
# -- Override the fullname of the chart.
Expand Down

0 comments on commit 7842a41

Please sign in to comment.