gliderlabs / cmd

Other
28 stars 4 forks source link

replacing docker component with dockerbox #197

Closed progrium closed 7 years ago

progrium commented 7 years ago

This is sort of a big change. It replaces the docker component and proxy to a simpler dockerbox component that effectively does the same thing without a proxy and picks a Docker backend from the IPs of an A record (instead of SRV record). It's designed to work with the specialized Docker in Docker container we started called Dockerbox, which is for now mostly just a slightly configured DinD.

This allows us to run the sandboxed Docker for Cmd in Kubernetes instead of in a separate cluster that adds additional costs and operational overhead. If we can run everything in Kubernetes we've simplified a lot.

Alpha manifest now includes Dockerbox for it to use. I also added a minikube directory with manifests for running locally in Minikube. The Makefile for this uses the latest version of Sigil since the secrets manifest is generated based on your environment (so you can use same environment secrets as make dev for running in Minikube).

Logs also now record which Docker instance was used for each SSH call.

Merging to master will deploy to alpha and this should deploy Dockerbox as a daemonset and Cmd will be configured to use it via DNS + headless service.

Signed-off-by: Jeff Lindsay progrium@gmail.com