k3d-io / k3d

Little helper to run CNCF's k3s in Docker
https://k3d.io/
MIT License
5.46k stars 462 forks source link

[FEATURE] Implement Cluster API #346

Open alexec opened 4 years ago

alexec commented 4 years ago

Is your feature request related to a problem or a Pull Request?

Feature.

Scope of your request

As a developer I'd like to test an application using Cluster API, but without expensive provider accounts.

Describe the solution you'd like

A K3D controller running in a cluster, listening to CAPI resources and creating further K3Ds.

This all be very easy if K3D runs as server we can send requests to. I could write this in a weekend.

Describe alternatives you've considered

None so far.

iwilltry42 commented 4 years ago

Hi @alexec , thanks for opening this feature request! This would definitely be really cool :) However it would probably rather be a separate project, right? Would be happy to help with an implementation :+1:

alexec commented 4 years ago

What would help with be some kind of documentation that explains how to interact with K3D to request in creates a new cluster.

iwilltry42 commented 3 years ago

HI @alexec , I think the new config file feature brings us a step closer to this? Apparently, I didn't read your last comment so far, but what kind of documentation do you need? :thinking:

alexec commented 3 years ago

API docs.

iwilltry42 commented 3 years ago

What API? k3d doesn't have an API :thinking: You have the module docs: https://pkg.go.dev/github.com/rancher/k3d The k3d usage docs: https://k3d.io And the configuration Schema: https://github.com/rancher/k3d/blob/main/pkg/config/v1alpha2/schema.json