Changing WORKDIR in kubernetes

Created: — modified: — tags: k8s

It is possible, no matter what your friendly AI chatbot tells you

It is well documented in official docs, this setting is available on the same level as image, command, and args:

workingDir string

Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.

and there are answers at StackOverflow and medium. So please correct your answers next time, dear AI ;)