Skip to content

Commit a76b527

Browse files
authored
Exclude AKS windows nodes from kubelet stats fix (#1797)
Signed-off-by: Dani Louca <[email protected]>
1 parent f8aa907 commit a76b527

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.chloggen/kubeletAKS.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ change_type: bug_fix
33
# The name of the component, or a single word describing the area of concern, (e.g. agent, clusterReceiver, gateway, operator, chart, other)
44
component: agent
55
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
6-
note: Configure AKS KubeletStats receiver to use the appropriate CA file. For more information, see the following link
6+
note: Configure AKS KubeletStats receiver on non-windows nodes to use the appropriate CA file. For more information, see the following link
77
https://github.com/signalfx/splunk-otel-collector-chart/blob/main/docs/advanced-configuration.md#aks-kubeletstats-receiver
88
# One or more tracking issues related to the change
99
issues: [1773]

docs/advanced-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ and it only adds the node name in its certificate Subject Alternative Name.
7171

7272
When `distribution` is set to `aks`, the chart automatically sets the custom `ca_file`
7373
option to `/hostfs/etc/kubernetes/certs/kubeletserver.crt` and uses the node name in
74-
its endpoint.
74+
its endpoint. Note: This is applicable solely to non-Windows nodes at this time.
7575

7676
For custom setups (e.g., custom certificates, Windows nodes, or Linux nodes with virtual network using custom DNS),
7777
adjust `ca_file` and use the node IP instead.

helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ receivers:
381381
# use the read-only endpoint instead.
382382
auth_type: none
383383
endpoint: ${K8S_NODE_IP}:10255
384-
{{ else if eq .Values.distribution "aks" }}
384+
{{ else if and (eq .Values.distribution "aks") (not .Values.isWindows) }}
385385
ca_file: "/hostfs/etc/kubernetes/certs/kubeletserver.crt"
386386
endpoint: ${K8S_NODE_NAME}:10250
387387
auth_type: serviceAccount

0 commit comments

Comments
 (0)