Sign inSign up

e2fyi/theia-controller

By e2fyi

Updated over 6 years ago

k8s controller to manage theia-web-apps

Image
0

1.1K

e2fyi/theia-controller repository overview

theia-controller

kubernetes CRD controller to manage theia (vscode alternative) - imagine jupyterhub.

TODOs

  • Add a react UI to list, stop, and start theia instances
  • (stretch-goal) Add authentications, etc, and integrate with Kubeflow

Docker

See https://hub.docker.com/r/e2fyi/theia-controller

Developer notes

Generate/update codes and CRD manifest
make generate
make manifest
Kustomize

kubebuilder requires kustomize v3.1.0+. kubectl is currently still on v2, so you will need to download kustomize binary from their site.

Deploying theia-controller

# create and deploy the basic controller
kustomize build manifest/kustomize/base > manifest/generated/theia-controller.yaml
kubectl apply -f manifest/generated/theia-controller.yaml

# create and deploy the controller with istio integration
kustomize build manifest/kustomize/istio > manifest/generated/theia-controller-istio.yaml
kubectl apply -f manifest/generated/theia-controller-istio.yaml

Creating a theia statefulset

# deploys a theia CR
kubectl apply -f manifest/examples

If istio is deployed in the cluster, you can access the theia webapp via the route http://<istio-gateway-hostname>/theia/<namespace>/<cr-name> (e.g. http://x.x.x.x/theia/default/my-theia).

Tag summary

Content type

Image

Digest

Size

17.1 MB

Last updated

over 6 years ago

docker pull e2fyi/theia-controller