jsonnet/kube-prometheus: kube-rbac-proxy should run as UID 65532

This commit is contained in:
paulfantom 2020-11-23 11:26:47 +01:00
parent 7f50004133
commit befa960a1e
No known key found for this signature in database
GPG Key ID: 12AE0185401674E7
2 changed files with 8 additions and 1 deletions

View File

@ -41,7 +41,9 @@
{ name: krp.config.kubeRbacProxy.securePortName, containerPort: krp.config.kubeRbacProxy.securePort },
],
securityContext: {
runAsUser: 65534,
runAsUser: 65532,
runAsGroup: 65532,
runAsNonRoot: true,
},
}],
},

View File

@ -103,6 +103,11 @@
{ name: 'https', containerPort: $._config.nodeExporter.port, hostPort: $._config.nodeExporter.port },
],
resources: $._config.resources['kube-rbac-proxy'],
securityContext: {
runAsUser: 65532,
runAsGroup: 65532,
runAsNonRoot: true,
},
};
{