Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding custom resource controller #2

Open
0xsubi opened this issue May 29, 2020 · 1 comment
Open

Question regarding custom resource controller #2

0xsubi opened this issue May 29, 2020 · 1 comment

Comments

@0xsubi
Copy link

0xsubi commented May 29, 2020

@trstringer
Is it possible to create a custom resource controller based off of a separate API?
For example, let's say I want to have an object similar to replicaset in that I want to have 3 instances of my application up and running in a GCP VM? Is it possible to create a custom resource and controller that gets the state from GCP APIs (in this case) but leverages custom controller to provide a declarative state.

@jianz
Copy link

jianz commented Jul 9, 2020

@sudhabindu1 I think it is doable though not straight forward. In your GCP VM case, you can use k8s(etcd) as the datastore to store the VM info, and use the CRD controller calling GCP API to manage the lifecycle of the VM. The tricky part I think is how to update the controller if there is any status update of the VM from the GCP side.

You can take a look at the KubeVirt project as it related to your though.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants