4 ms·
K8s actually doesn't support deploying a single container, only a pod which can have 1 or more containers. This is very powerful and enables all kinds of other
by moondev 5y ago
K8s actually doesn't support deploying a single container, only a pod which can have 1 or more containers. This is very powerful and enables all kinds of other patterns like sidecars and init containers
- linkdd 5y agoCould you cheat by mounting the node's docker socket in a privileged pod and execute `docker run` from that pod? But yeah, when I said "one service per container" I was thinking about the step before deploying to K8s. It's because I've seen a few years ago some python projects completely encapsulated in a Docker container, with an init system like supervisord (running a redis, a django app, and celery workers).
- morelisp 5y agoA container started this way would be invisible to Kubernetes.