Containerized CGI implementation for Kubernetes
Make computationally-heavy web API easy and scalable via handling each requests with containers on Kubernetes. Especially useful when accelerators are desired, which are managed by Kubernetes itself via custom allocatable resources.
You’ll need a Kubernetes cluster to run against. You can use KIND to get a local cluster for testing, or run against a remote cluster.
Note: Your controller will automatically use the current context in your kubeconfig file (i.e. whatever cluster kubectl cluster-info shows).
kubectl apply -k config/samples/IMG:make docker-build docker-push IMG=<some-registry>/kube-cgi:tagIMG:make deploy IMG=<some-registry>/kube-cgi:tagTo delete the CRDs from the cluster:
make uninstallUnDeploy the controller from the cluster:
make undeploy// TODO(user): Add detailed information on how you would like others to contribute to this project
This project aims to follow the Kubernetes Operator pattern.
It uses Controllers, which provide a reconcile function responsible for synchronizing resources until the desired state is reached on the cluster.
make installmake runNOTE: You can also run this in one step by running: make install run
If you are editing the API definitions, generate the manifests such as CRs or CRDs using:
make manifestsNOTE: Run make --help for more information on all potential make targets
More information can be found via the Kubebuilder Documentation
MIT