nativelink icon indicating copy to clipboard operation
nativelink copied to clipboard

Add a production-grade kubernetes deployment process.

Open Ely-S opened this issue 2 years ago • 2 comments

Pain Point I would like to test this tool to see if it will speed up slow bazel builds. I have a multi-tenant kubernetes cluster I can deploy a short-lived service on, provided I clean everything up when done evaluating this tool. Here are some requirements:

Requirements

  • A robust solution with clear resource limits. I need to know how much resources these services will use before deployment
  • It should be clearer what will be deployed. These shell scripts don't tell me what affect they will have on the cluster in high enough detail. image
  • It should be secure and production-grade. The kubernetes example says "Don't use this example deployment in production. It's insecure."
  • It should be possible to deploy this in about 30 minutes of user-time, and clean up in 5 minutes.
  • Transparent: All kubectl commands should be manually run. Currently they are inside scripts, which hide the most critical parts of the workflow. I would strongly prefer a larger number of commands so that I can see each step and it's outcome.

Ely-S avatar Feb 22 '24 21:02 Ely-S

Thanks for the feedback @Ely-S! We are going to address it right away.

  1. The setup here is an example for local development using kind (Kubernetes-in-Docker) to give you a sense for how you could deploy it with Kubernetes. We should be more explicit in the docs about that.

  2. There's obviously truth to this statement:

It should be clearer what will be deployed. These shell scripts don't tell me what affect they will have on the cluster in high enough detail. We are documenting a path to fix that right away to enumerate exactly what we are doing, though the "cluster" in this example is really intended to run locally as a test. We should still add a clear delineation of what is happening at every step.

  1. We can provide you with production-grade deployment instructions.

  2. On transparency:

Transparent: All kubectl commands should be manually run. Currently they are inside scripts, which hide the most critical parts of the workflow. I would strongly prefer a larger number of commands so that I can see each step and it's outcome.

For sure!

MarcusSorealheis avatar Feb 22 '24 23:02 MarcusSorealheis

https://docs.nativelink.com/deployment/kubernetes does all this now

palfrey avatar Jun 02 '26 11:06 palfrey