The critical difference is in the kibana.yml configuration file, setting server.basePath: "/api/v1/proxy/namespaces/kube-system/services/kibana-logging"
Unfortunately, this change cannot be made at deploy time using a ConfigMap, because the node app must perform bundle optimization, taking tens to hundreds of seconds. The change must be made during the docker container build so that startup time remains quick.
See