Looking at dockerfile of metrics-apiserver the binary is copied over to / and the entrypoint is: ENTRYPOINT ["/keda-adapter", "--secure-port=6443", "--logtostderr=true", "--v=0"], which is the same pattern of keda and webhooks images.
The chart deployment object has different pattern for metrics-apiserver for some reason. It doesn't define command and it reference the binary at /usr/local/bin:
/
and the entrypoint is:ENTRYPOINT ["/keda-adapter", "--secure-port=6443", "--logtostderr=true", "--v=0"]
, which is the same pattern of keda and webhooks images.command
and it reference the binary at/usr/local/bin
:This for some reason doesn't fail when using the regular distroless image but when I tried to use custom build - it started to fail.
Expected Behavior
The metrics server should have
command: ["/keda-adapter"]
just like other Deployment objectsActual Behavior
The metrics server doesn't have command at all and defines wrong path to the binary in
args
.Specifications