Skip to content

Commit

Permalink
fix: add debug argument to nobl9-agent (#20)
Browse files Browse the repository at this point in the history
* fix: add debug argument to nobl9-agent

    Adds `debug` value to the chart to run Agent in debug mode.
    By default it's set to false.

* fix: update nobl9-agent image to 0.69.2

* fix: add command arguent to nobl9-agent chart

    The `command` argument allows to run distroless image.

* chore: add values.schema.json to nobl9-agent

* chore: update CODEOWNERS

Resolves: PC-11892
  • Loading branch information
mkaras-nobl9 authored Feb 5, 2024
1 parent c7ac4b4 commit be61174
Show file tree
Hide file tree
Showing 5 changed files with 424 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @nobl9/site-reliability-engineering
* @nobl9/site-reliability-engineering @nobl9/io
4 changes: 3 additions & 1 deletion charts/nobl9-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ Go to the [docs.nobl9.com](https://docs.nobl9.com/Nobl9_Agent/helm-charts?_highl

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| args | string | `nil` | Allow to pass additional arguments to the telegraf command for ex. "--debug" |
| command | list | `["telegraf"]` | Container command |
| config.allowedUrls | string | `nil` | Populates N9_ALLOWED_URLS that limits the URLs which an Agent is able to query |
| config.authServer | string | `"auseg9kiegWKEtJZC416"` | Nobl9 Auth Server ID |
| config.clientId | string | `nil` | Nobl9 Client ID, creates secret with this value, leave empty and use deployment.extraEnvs to load from existing Secret |
Expand All @@ -93,7 +95,7 @@ Go to the [docs.nobl9.com](https://docs.nobl9.com/Nobl9_Agent/helm-charts?_highl
| deployment.extraVolumes | string | `nil` | Additional Volumes |
| deployment.image | string | `"nobl9/agent"` | Image used by chart |
| deployment.pullPolicy | string | `"Always"` | Image Pull Policy |
| deployment.version | string | `"0.53.2"` | Agent version (image tag) |
| deployment.version | string | `"0.69.2"` | Agent version (image tag) |
| extraLabels | object | `{}` | Additional labels for created objects. |
| namespaceOverride | string | `nil` | Override the Namespace |
| resources.limits.cpu | string | `"1.0"` | CPU limit |
Expand Down
8 changes: 8 additions & 0 deletions charts/nobl9-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ spec:
- name: agent-container
image: {{ .Values.deployment.image }}:{{ .Values.deployment.version }}
imagePullPolicy: {{ .Values.deployment.pullPolicy }}
{{- with .Values.args }}
args:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.command }}
command:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
Loading

0 comments on commit be61174

Please sign in to comment.