Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saladtechnologies/virtual-kubelet-saladcloud
SaladCloud Virtual Kubelet provider
https://github.com/saladtechnologies/virtual-kubelet-saladcloud
go kubernetes salad saladcloud virtual-kubelet virtual-kubelet-provider
Last synced: 6 days ago
JSON representation
SaladCloud Virtual Kubelet provider
- Host: GitHub
- URL: https://github.com/saladtechnologies/virtual-kubelet-saladcloud
- Owner: SaladTechnologies
- License: apache-2.0
- Created: 2023-08-25T16:52:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-22T03:43:25.000Z (7 months ago)
- Last Synced: 2024-04-22T04:53:11.681Z (7 months ago)
- Topics: go, kubernetes, salad, saladcloud, virtual-kubelet, virtual-kubelet-provider
- Language: Go
- Homepage:
- Size: 1.36 MB
- Stars: 5
- Watchers: 5
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
# SaladCloud Virtual Kubelet Provider
[![License](https://img.shields.io/github/license/SaladTechnologies/virtual-kubelet-saladcloud)](./LICENSE) [![CI Workflow](https://github.com/SaladTechnologies/virtual-kubelet-saladcloud/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/SaladTechnologies/virtual-kubelet-saladcloud/actions/workflows/ci.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/SaladTechnologies/virtual-kubelet-saladcloud)](https://goreportcard.com/report/github.com/SaladTechnologies/virtual-kubelet-saladcloud)
Salad's Virtual Kubelet (VK) provider for SaladCloud enables running Kubernetes (K8s) pods as SaladCloud Container Group deployments. This prototype is currently in development, and not production ready yet. If you are interested, please reach out to us to discuss your specific needs.
## How it Works
The SaladCloud Virtual Kubelet Provider creates a _virtual node_ in your K8s cluster.
To the K8s API, it looks like a real node. However, when you schedule a pod on the virtual node, a container group deployment is created using the SaladCloud API instead of running the pod on a node in the K8s cluster. The container group deployment runs the pod on a remote, GPU-enabled node on the SaladCloud network.
## Demo
This was used in a presentation at KubeCon2023, the script and pod spec file for the QR code workload are in
the [demo](demo) directory.## Development
Follow the steps below to get started with local development.
### Prerequisites
- [Git](https://git-scm.com/downloads)
- [Go](https://go.dev/dl)
- [Docker Desktop](https://docs.docker.com/get-docker/) with a [local Kubernetes cluster](https://docs.docker.com/desktop/kubernetes/)### Getting Started
1. Clone the repository.
```sh
git clone https://github.com/SaladTechnologies/virtual-kubelet-saladcloud.git
```2. Restore the dependencies.
```sh
go mod download
go mod verify
```3. Build the project.
```sh
make build
```4. Run the project in foreground.
```sh
./bin/virtual-kubelet --sce-api-key {apiKey} --sce-project-name {projectName} --sce-organization-name {organizationName}
```or
4. Run the project in K8s via Helm.
```sh
helm install \
--create-namespace \
--namespace saladcloud \
--set salad.apiKey=${apiKey} \
--set salad.organizationName=${organizationName} \
--set salad.projectName=${projectName} \
--set provider.image.tag=${imageTag} \
saladcloud-node \
./charts/virtual-kubelet
```