Skip to content

Commit bd06165

Browse files
committed
remove process metrics config
1 parent 96aefc5 commit bd06165

File tree

5 files changed

+3
-136
lines changed

5 files changed

+3
-136
lines changed

charts/newrelic-infrastructure/templates/NOTES.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,12 @@ Windows privileged mode is enabled (windows.privileged: true). The Windows kubel
3939
HostProcess containers, which execute directly on the Windows host with elevated privileges.
4040

4141
HostProcess containers:
42-
{{- if .Values.enableProcessMetrics }}
43-
- Kubelet scraper runs as NT AUTHORITY\Local service
44-
- Agent runs as NT AUTHORITY\SYSTEM (required for enableProcessMetrics: true)
45-
{{- else }}
4642
- Both containers run as NT AUTHORITY\Local service
47-
{{- end }}
4843
- Have full access to the host filesystem via CONTAINER_SANDBOX_MOUNT_POINT
4944
- Require hostNetwork: true (pods use the host's network namespace)
5045
- Are supported on Windows Server 2019 and later
5146

52-
This mode provides full monitoring capabilities including {{ if .Values.enableProcessMetrics }}process metrics and {{ end }}network statistics, but requires
47+
This mode provides full monitoring capabilities including network statistics, but requires
5348
administrative privileges on Windows nodes. If you need to run in a more restricted environment, set
5449
`windows.privileged: false` to use standard container isolation.
5550
{{- end }}

charts/newrelic-infrastructure/templates/kubelet/_agent-config_helper.tpl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ either `true` or `false`. So we test if the variable is a boolean and in that ca
1616
{{- if (get .Values "enableProcessMetrics" | kindIs "bool") }}
1717
enable_process_metrics: {{ .Values.enableProcessMetrics }}
1818
{{- end }}
19-
{{- /*
20-
`enable_elevated_process_priv` enables SeDebugPrivilege on Windows for enhanced process visibility.
21-
Auto-enable when enableProcessMetrics is true AND enableWindows is true, since Windows HostProcess
22-
containers are inherently privileged and partial process visibility is less useful.
23-
Users can still override via kubelet.agentConfig.enable_elevated_process_priv if needed.
24-
*/}}
25-
{{- if and (get .Values "enableProcessMetrics") (get .Values "enableWindows") }}
26-
enable_elevated_process_priv: true
27-
{{- end }}
2819
{{- end -}}
2920

3021

charts/newrelic-infrastructure/templates/kubelet/daemonset-windows.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ spec:
144144
windowsOptions:
145145
{{- if include "nriKubernetes.windows.privileged" $ }}
146146
hostProcess: true
147-
{{- if $.Values.enableProcessMetrics }}
148-
runAsUserName: "NT AUTHORITY\\SYSTEM"
149-
{{- else }}
150147
runAsUserName: "NT AUTHORITY\\Local service"
151-
{{- end }}
152148
{{- else }}
153149
hostProcess: false
154150
runAsUserName: "ContainerUser"

charts/newrelic-infrastructure/tests/elevated_process_privilege_test.yaml

Lines changed: 0 additions & 115 deletions
This file was deleted.

charts/newrelic-infrastructure/tests/windows_hostprocess_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tests:
2929
value: true
3030
template: templates/kubelet/daemonset-windows.yaml
3131

32-
- it: should set correct user accounts in privileged mode with enableProcessMetrics
32+
- it: should use Local service for agent when privileged regardless of enableProcessMetrics
3333
set:
3434
licenseKey: test
3535
cluster: test
@@ -46,7 +46,7 @@ tests:
4646
template: templates/kubelet/daemonset-windows.yaml
4747
- equal:
4848
path: spec.template.spec.containers[1].securityContext.windowsOptions.runAsUserName
49-
value: "NT AUTHORITY\\SYSTEM"
49+
value: "NT AUTHORITY\\Local service"
5050
template: templates/kubelet/daemonset-windows.yaml
5151

5252
- it: should use Local service for agent when privileged without enableProcessMetrics

0 commit comments

Comments
 (0)