diff --git a/.changelog/3940.feat.txt b/.changelog/3940.feat.txt new file mode 100644 index 0000000000..db9d88b5b5 --- /dev/null +++ b/.changelog/3940.feat.txt @@ -0,0 +1 @@ +feat: allow for hostNetwork in otellogs.daemonset diff --git a/deploy/helm/sumologic/templates/logs/collector/otelcol/daemonset.yaml b/deploy/helm/sumologic/templates/logs/collector/otelcol/daemonset.yaml index e2aa47d7a9..f2d92e2897 100644 --- a/deploy/helm/sumologic/templates/logs/collector/otelcol/daemonset.yaml +++ b/deploy/helm/sumologic/templates/logs/collector/otelcol/daemonset.yaml @@ -84,6 +84,9 @@ spec: {{- else }} priorityClassName: {{ include "sumologic.metadata.name.priorityclass" $ctx | quote }} {{- end }} + {{- if $daemonset.hostNetwork }} + hostNetwork: {{ $daemonset.hostNetwork }} + {{- end }} containers: - args: - --config=/etc/otelcol/config.yaml diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index a3ca0d3d2b..e60c8116b8 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -2124,6 +2124,9 @@ otellogs: ## Add custom annotations to all otelcol daemonset pods podAnnotations: {} + ## Allow for hostNetwork to be used in the OTEL daemonsets + hostNetwork: false + resources: limits: memory: 1Gi