codeamp / circuit

CodeAmp API. Built with Golang, GraphQL, GORM and Socket-IO
Apache License 2.0
21 stars 6 forks source link

Spin up console deployment in a separate namespace #450

Open iamsaso opened 5 years ago

iamsaso commented 5 years ago

Currently, engineers need to create another service in codeamp that injects console to their project...

Ex. project checkr/deploy-test Service: web Deployed hash: f36274f

When we deploy the project we create a new deployment named checkr-checkr-web inside production-checkr-deploy-test namespace

We cannot deploy a console service inside this namespace because we would delete it when we redeploy the service.

What we could do is create a second namespace production-checkr-console-deploy-test and create a deployment checkr-checkr-<release-id>-<created-at>

we could then give exec access to production-checkr-console-* namespace that would allow them to debug their code in production.

We could then run a task that would scale down and clean up old deployments...