loft-sh / vcluster

vCluster - Create fully functional virtual Kubernetes clusters - Each vcluster runs inside a namespace of the underlying k8s cluster. It's cheaper than creating separate full-blown clusters and it offers better multi-tenancy and isolation than regular namespaces.
https://www.vcluster.com
Apache License 2.0
6.69k stars 422 forks source link

Sync Deployment, Statefulset, Jobs and other resources #1298

Closed kirinnee closed 1 year ago

kirinnee commented 1 year ago

Is your feature request related to a problem?

Yes, in-hopes of doing telemetry only on the host cluster. i hope to be able to access metadata on the virtual cluster without installing observability agents on the virtual cluster.

Example use cases:

Observability agents tested:

Which solution do you suggest?

Simplest way would be to sync deployments as fake-deployments or shims that contains the same metadata from virtual to host

Which alternative solutions exist?

deploying all observability agents into each virtual cluster

Additional context

No response

matskiv commented 1 year ago

As an alternative approach, instead of creating some shims, vcluster could produce the metrics that are needed, and the host agent would just need to collect. This is just a quick idea, open for a discussion ofc.

rohantmp commented 1 year ago

One point re:

Simplest way would be to sync deployments as fake-deployments or shims that contains the same metadata from virtual to host

If you're trying to get useful data like requested replicas vs ready replicas, copying the metadata from virtual to host wouldn't work. That's in spec and status. If you copy spec, it will try to reconcile on the host cluster.

rohantmp commented 1 year ago

Closing this for now as the suggested approach seem not to be feasible and it has been inactive for some time. Feel free to reopen if you feel this needs more discussion :)