Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/4011.added.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: Add support to DaemonSet for extra ports
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ spec:
- name: metrics
containerPort: 8888
protocol: TCP
{{- if $daemonset.extraPorts }}
{{- toYaml $daemonset.extraPorts | nindent 8 }}
{{- end }}
initContainers: # ensure the host path is owned by the otel user group
- name: changeowner
# yamllint disable-line rule:line-length
Expand Down
23 changes: 15 additions & 8 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1061,8 +1061,7 @@ kube-prometheus-stack:
## Annotations to add to the operator pod
podAnnotations: {}
## Resource limits for prometheus operator
resources:
{}
resources: {}
# limits:
# cpu: 200m
# memory: 200Mi
Expand Down Expand Up @@ -1095,8 +1094,7 @@ kube-prometheus-stack:
customLabels: {}
## Additional annotations for pods in the DaemonSet
podAnnotations: {}
resources:
{}
resources: {}
# limits:
# cpu: 100m
# memory: 64Mi
Expand Down Expand Up @@ -1185,8 +1183,7 @@ kube-prometheus-stack:
podLabels: {}
## Additional annotations for pods in the DaemonSet
podAnnotations: {}
resources:
{}
resources: {}
# limits:
# cpu: 200m
# memory: 50Mi
Expand Down Expand Up @@ -2192,6 +2189,17 @@ otellogs:
# maxUnavailable: 1
# type: RollingUpdate

## Extra Ports - Allows you to open additional ports on the DaemonSet
# extraPorts:
# - name: otlp-http
# containerPort: 4318
# protocol: TCP
# hostPort: 4318
# - name: statsd
# containerPort: 8125
# hostPort: 8125
# protocol: UDP

## additionalDaemonSets allows to set daemonsets with affinity, nodeSelector and resources
## different than the main DaemonSet
## Be careful and set nodeAffinity for the main DaemonSet,
Expand Down Expand Up @@ -2552,8 +2560,7 @@ opentelemetry-operator:
nodejs:
repository: public.ecr.aws/sumologic/autoinstrumentation-nodejs
tag: 0.54.0
env:
{}
env: {}
# ENABLE_WEBHOOKS: "true"
resources:
limits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,13 @@ otellogs:
- name: es-certs
mountPath: /certs
readOnly: true

extraPorts:
- name: otlp-http
containerPort: 4318
protocol: TCP
hostPort: 4318
- name: statsd
containerPort: 8125
hostPort: 8125
protocol: UDP
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ spec:
- name: metrics
containerPort: 8888
protocol: TCP
- name: otlp-http
containerPort: 4318
protocol: TCP
hostPort: 4318
- name: statsd
containerPort: 8125
hostPort: 8125
protocol: UDP
initContainers: # ensure the host path is owned by the otel user group
- name: changeowner
# yamllint disable-line rule:line-length
Expand Down