Skip to content

Commit

Permalink
fixup! fixup! fix: allow opting-into upstream probes
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed Sep 15, 2024
1 parent 7ce89ea commit be93e60
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,14 @@ function(params) (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-
spec+: {
automountServiceAccountToken: true,
containers: std.map(function(c) c {
ports:: null,
ports: defaults.kubeRbacProxyMain.ports + defaults.kubeRbacProxySelf.ports,
securityContext+: {
runAsGroup: 65534,
},
args: ['--host=127.0.0.1', '--port=8081', '--telemetry-host=127.0.0.1', '--telemetry-port=8082'],
resources: ksm._config.resources,
} + if !ksm._config.enableProbes then {
ports:: null,
livenessProbe:: null,
readinessProbe:: null,
} else {}, super.containers) + [kubeRbacProxyMain, kubeRbacProxySelf],
Expand Down

0 comments on commit be93e60

Please sign in to comment.