Closed avbenavides closed 4 weeks ago
Hello, You can specify --hostname flag to docker run or k8s pod spec to set the hostname for the container at runtime.
True but I'm using netshoot to run load tests and that means more than one pod, and thus it is important that the hostname matches the pod name.
This is a request. Can you please not set the
HOSTNAME
environment variable in the Dockerfile? A non-written convention in the K8s and Docker world is that theHOSTNAME
environment variable value is the container or host ID. The netshoot Dockerfile breaks this convention by setting theHOSTNAME
variable to "netshoot". The uniqueness ofHOSTNAME
is used (that I've seen) for: