Co-authored-by: esacif <esacif@gmail.com> |
||
|---|---|---|
| .. | ||
| api/v1alpha1 | ||
| config | ||
| controllers | ||
| hack | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| Makefile | ||
| OWNERS | ||
| PROJECT | ||
| README.md | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| skaffold.yaml | ||
README.md
GSoC 2020 - TENSORBOARD CONTROLLER
Related Closed Issues
-
Tensorboard controller creates servers that always mount user-gcp-sa secret #5065
-
Tensorboard CR doesn't contain information about the Tensorboard Server being ready or not #5166
Related Pull Requests
-
Add scheduling functionality for Tensorboard servers that use RWO PVCs as log storages #5218
-
Add functionality to inform TWA frontend about the status of Tensorboard servers #5259
Prequisites to build and run the controller:
-
GO
-
Docker
-
kustomize
-
kubectl
RUN TENSORBOARD CONTROLLER LOCALLY
Steps:
-
Clone the repository
-
Change directories to
components/tensorboard-controller -
Generate and install manifests and build the controller:
make install -
Run the controller locally:
make run
If you want to enable the scheduling functionality for Tensorboard servers that use ReadWriteOnce PVCs as log storages, then set the RWO_PVC_SCHEDULING to true and run: RWO_PVC_SCHEDULING="true" make run
BUILD TENSORBOARD CONTROLLER IMAGE AND DEPLOY TO CLUSTER
-
Clone the repository
-
Change directories to
components/tensorboard-controller -
Generate and install manifests and build the controller:
make manifests -
Build and push the docker image:
make docker-build docker-push IMG=YOUR_IMAGE_NAME -
Deploy the Tensorboard controller:
make deploy IMG=YOUR_IMAGE_NAME
If you want to enable the scheduling functionality for Tensorboard servers that use ReadWriteOnce PVCs as log storages, then:
-
Change directories to
components/tensorboard-controller/config/manager -
Modify the
manager.yamlfile by navigating to thedeployment.spec.template.specfield and manually setting the value of theRWO_PVC_SCHEDULINGenv var to"true"in the manager container. -
Run:
make deploy IMG=YOUR_IMAGE_NAME