Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)

SaladCloud Virtual Kubelet Provider

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.

architecture diagram of the SaladCloud Virtual Kubelet Provider

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
```