Can I set docker's log-opt per deployment?


in docker I was able to overwrite docker’s default log-opt by adding the following to docker run statement:

--log-opt max-size=50m \
--log-opt max-file=3 \

Is there a way to set this in kubernetes’ deployment?

(I know that the best way is to move logs as early as possible to elasticsearch or sth similar, because logs are lost on rescheduling / deletion).

Regards, Andreas