diff --git a/stable/sematext-agent/Chart.yaml b/stable/sematext-agent/Chart.yaml index c9bf11da4f..a20fbf557a 100644 --- a/stable/sematext-agent/Chart.yaml +++ b/stable/sematext-agent/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 appVersion: "1.0" -version: 1.0.5 +version: 1.0.6 description: Helm chart for deploying Sematext Agent to Kubernetes keywords: - sematext diff --git a/stable/sematext-agent/README.md b/stable/sematext-agent/README.md index 9f9b495f63..bb6b171bf8 100644 --- a/stable/sematext-agent/README.md +++ b/stable/sematext-agent/README.md @@ -38,29 +38,30 @@ The command removes all the Kubernetes components associated with the chart and The following table lists the configuration parameters of the `sematext-agent` chart and default values. -| Parameter | Description | Default | -|-------------------------------|--------------------------------------|-------------------------------------------| -| `containerToken` | Sematext Container token | `Nil` Provide your Container token | -| `logseneToken` | Sematext Logsene token | `Nil` Provide your Logsene token | -| `region` | Sematext region | `US` Sematext US or EU region | -| `agent.image.repository` | The image repository | `sematext/agent` | -| `agent.image.tag` | The image tag | `latest` | -| `agent.image.pullPolicy` | Image pull policy | `Always` | -| `agent.service.port` | Service port | `80` | -| `agent.service.type` | Service type | `ClusterIP` | -| `agent.resources` | Agent resources | `{}` | -| `logagent.image.repository` | The image repository | `sematext/logagent` | -| `logagent.image.tag` | The image tag | `latest` | -| `logagent.image.pullPolicy` | Image pull policy | `Always` | -| `logagent.resources` | Logagent resources | `{}` | -| `customUrl.serverBaseUrl` | Custom Base URL | `Nil` | -| `customUrl.logsReceiverUrl` | Custom Logsene receiver URL | `Nil` | -| `customUrl.eventsRecieverUrl` | Custom Event receiver URL | `Nil` | -| `serviceAccount.create` | Create a service account | `true` | -| `serviceAccount.name` | Service account name | `Nil` Defaults to chart name | -| `rbac.create` | RBAC enabled | `true` | -| `tolerations` | Tolerations | `[]` | -| `nodeSelector` | Node selector | `{}` | +| Parameter | Description | Default | +|----------------------------------|-----------------------------------|-------------------------------------------| +| `containerToken` | Sematext Container token | `Nil` Provide your Container token | +| `logseneToken` | Sematext Logsene token | `Nil` Provide your Logsene token | +| `region` | Sematext region | `US` Sematext US or EU region | +| `agent.image.repository` | The image repository | `sematext/agent` | +| `agent.image.tag` | The image tag | `latest` | +| `agent.image.pullPolicy` | Image pull policy | `Always` | +| `agent.service.port` | Service port | `80` | +| `agent.service.type` | Service type | `ClusterIP` | +| `agent.resources` | Agent resources | `{}` | +| `logagent.image.repository` | The image repository | `sematext/logagent` | +| `logagent.image.tag` | The image tag | `latest` | +| `logagent.image.pullPolicy` | Image pull policy | `Always` | +| `logagent.resources` | Logagent resources | `{}` | +| `logagent.extraHostVolumeMounts` | Extra mounts | `{}` | +| `customUrl.serverBaseUrl` | Custom Base URL | `Nil` | +| `customUrl.logsReceiverUrl` | Custom Logsene receiver URL | `Nil` | +| `customUrl.eventsRecieverUrl` | Custom Event receiver URL | `Nil` | +| `serviceAccount.create` | Create a service account | `true` | +| `serviceAccount.name` | Service account name | `Nil` Defaults to chart name | +| `rbac.create` | RBAC enabled | `true` | +| `tolerations` | Tolerations | `[]` | +| `nodeSelector` | Node selector | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example: diff --git a/stable/sematext-agent/templates/daemonset.yaml b/stable/sematext-agent/templates/daemonset.yaml index f25548f3f8..b30ff428cb 100644 --- a/stable/sematext-agent/templates/daemonset.yaml +++ b/stable/sematext-agent/templates/daemonset.yaml @@ -115,6 +115,12 @@ spec: volumeMounts: - name: docker-sock mountPath: /var/run/docker.sock + {{- if .Values.logagent.extraHostVolumeMounts }} + {{- range $_, $mount := .Values.logagent.extraHostVolumeMounts }} + - name: {{ $mount.name }} + mountPath: {{ $mount.mountPath }} + {{- end }} + {{- end }} resources: {{ toYaml .Values.logagent.resources | indent 12 }} {{- end }} @@ -140,6 +146,13 @@ spec: - name: lib hostPath: path: /host/usr/lib + {{- if .Values.logagent.extraHostVolumeMounts }} + {{- range $_, $mount := .Values.logagent.extraHostVolumeMounts }} + - name: {{ $mount.name }} + hostPath: + path: {{ $mount.hostPath }} + {{- end }} + {{- end }} - name: autodisco-template configMap: name: {{ template "sematext-agent.fullname" . }}-agent-autodisco diff --git a/stable/sematext-agent/values.yaml b/stable/sematext-agent/values.yaml index 5e547ff24a..7a89f642e7 100644 --- a/stable/sematext-agent/values.yaml +++ b/stable/sematext-agent/values.yaml @@ -26,6 +26,10 @@ logagent: LOGSENE_BULK_SIZE: "1000" LOGSENE_LOG_INTERVAL: "10000" resources: {} + extraHostVolumeMounts: {} + # - name: + # hostPath: + # mountPath: rbac: # Specifies whether RBAC resources should be created