Synchronization of a workload with a cluster namespace

17 views
Skip to first unread message

Alexey Roytman

unread,
Sep 10, 2022, 1:01:41 AM9/10/22
to KCP Users
Hi,
I've just started to play with KCP and have to say that it's a really cool project.

I was able to synchronize my cluster with KCP, according to the README example.
However, I have a question, is it possible to synchronize only a certain namespace (namespaces), instead of the entire cluster? And if yes, is it possible to synchronize different namespaces to different workloads (workspaces).

I can explain my use case, our customers do not want to use CRDs due to lack of etcd recourse and K8s API server load separations. I'm wondering if KCP can provide multi-tenant CRDs isolation.

Thanks a lot
Alexey.

Stefan Schimanski

unread,
Sep 10, 2022, 6:37:09 AM9/10/22
to Alexey Roytman, KCP Users
Hi Alexey,

great to see that you like what we are doing in kcp.

For your questions, check the Placement object type and especially NamespaceSelector in the spec https://github.com/kcp-dev/kcp/blob/main/pkg/apis/scheduling/v1alpha1/types_placement.go#L78. You can also have multiple placements per workspace to schedule namespaces to different SyncTargets.

And yes, kcp offers CRD tenant separation. Every workspace is independent.

Best regards,
   Stefan

-- 
Red Hat GmbH, Registered seat: Werner von Siemens Ring 14, D-85630 Grasbrunn, Germany  
Commercial register: Amtsgericht Muenchen/Munich, HRB 153243,
Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross 


--
You received this message because you are subscribed to the Google Groups "KCP Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kcp-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kcp-users/fdf1418b-9232-4049-b96e-414af5f1df9dn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Charles Moulliard

unread,
Sep 12, 2022, 3:51:27 AM9/12/22
to Stefan Schimanski, Alexey Roytman, KCP Users
Are we talking about the KCP namespaces or the namespaces of the physical target clusters - https://github.com/kcp-dev/kcp/blob/main/pkg/apis/scheduling/v1alpha1/types_placement.go#L75-L78?


Stefan Schimanski

unread,
Sep 12, 2022, 4:11:31 AM9/12/22
to Charles Moulliard, Alexey Roytman, KCP Users
On Mon, Sep 12, 2022 at 9:51 AM Charles Moulliard <cmou...@redhat.com> wrote:
Are we talking about the KCP namespaces or the namespaces of the physical target clusters - https://github.com/kcp-dev/kcp/blob/main/pkg/apis/scheduling/v1alpha1/types_placement.go#L75-L78?

The downstream namespace is not something the user is aware of at all. The APIs do not talk about physical clusters and their namespaces. This is about kcp.

Best regards,
  Stefan

 
Reply all
Reply to author
Forward
0 new messages