Skip to content

datum-cloud/unikraft-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Infra Provider Unikraft

This operator watches for Instance CRDs and creates corresponding resources in a Unikraft cluster.

Quick Start

Prerequisites

  1. Kubernetes cluster - A running Kubernetes cluster where the operator will run
  2. Helm - For installing the UKC operator
  3. Go - For running locally during development
  4. kubectl - For managing Kubernetes resources

Local Setup

Follow these steps to run the operator locally in a single cluster:

1. Install UKC Operator via Helm

helm install k8s-operator \
  --namespace ukc-operator \
  --create-namespace \
  --set ukc.metro=<UKC_METRO> \
  --set ukc.token=<UKC_TOKEN> \
  oci://ghcr.io/unikraft-cloud/helm-charts/k8s-operator

2. Install Datum CRDs

make install

This will install the Workload and Instance CRDs into your cluster.

3. Run the Operator Locally

go run ./cmd/main.go --server-config=config/dev/example-same-cluster.yaml

The operator is now running and will watch for CRD changes in your cluster.

4. Test the Operator

In a new terminal, apply the example Instance resource:

kubectl apply -f examples/instance.yaml

The operator will process the Instance and create corresponding resources in the Unikraft cluster. You can verify it was created by checking:

kubectl get instances.compute.datumapis.com

About

Unikraft 🤜🤛 Datum Cloud

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages