True. Perhaps you can upload to a temporary folder first, rename the old production folder to something else, and rename the temporary folder to the normal production folder. You may serve a 404 error if someone manages to do a request between the two renaming operation but I'm sure it's fine.
These two things run in conflict. It’s not about not dropping requests - It’s about a sane state and error reproducibility. If you drag the wrong file, there will be plenty of downtime...
True. But if you apply the wrong YAML file in kubernetes too. If your container has the wrong version too.
Anyway, I'm not advising for uploading PHP files through FTP on live servers in 2020, I took it as an example of something we used to do without kubernetes.
This is an oversimplification of the problem. You need to drain the requests to the old version then wait until the new one passes a health check before rerouting the traffic
The complexity of the configuration is huge. Zero downtime deployments and load balancing can be achieved without the complexity of kubernetes.
For example, drag and drop of .php files on a FTP server did that 15 years ago.