Multi-Tenant Kubernetes Cluster With Capsule

  Рет қаралды 10,874

DevOps Toolkit

DevOps Toolkit

Күн бұрын

Пікірлер: 43
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
How did you implement tenants? What do you think about Capsule?
@MrTmorton77
@MrTmorton77 3 жыл бұрын
github.com/clastix/capsule-proxy Should address the list namespace issue. Although I am just now digging into all of this. Thanks for all the great content!
@MrTmorton77
@MrTmorton77 3 жыл бұрын
$ kubectl --context alice-oidc@mycluster get namespaces NAME STATUS AGE gas-marketing Active 2m oil-development Active 2m oil-production Active 2m
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
@@MrTmorton77 I think I mentioned it in the video. I don't think the proxy is the solution but, rather, a workaround. That would need to be changed in Kubernetes itself to make it transparent for the users.
@MrTmorton77
@MrTmorton77 3 жыл бұрын
@@DevOpsToolkit you did I just commented before I heard it. :) Looking forward to your video on HNS.
@shilashm5691
@shilashm5691 6 ай бұрын
Can we use multi tenant concept for maintain different env(dev, stage, prod)?
@mehdik3883
@mehdik3883 3 жыл бұрын
Your description of tenant and multi-tenant with apartments example is just awesome ♥️
@harshthakur7215
@harshthakur7215 3 жыл бұрын
Hey Viktor, would love to hear more about your thoughts on hierarchical-namespaces.
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
Adding it to my TODO list... :)
@kevinyu9934
@kevinyu9934 3 жыл бұрын
I like this type of contents!!! I like innovative Cloud Native Solutions! Keep it up bro
@Peter1215
@Peter1215 3 жыл бұрын
Multitenancy is a very hard problem to crack, capsule looks promising. I would also like to see a deep dive on hierarchical namespaces please.
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
HNS is coming... :)
@javisartdesign
@javisartdesign 3 жыл бұрын
thanks. This tool seems very promising. As yoou said sometimes kubernetes clusters can be used for prototyping, educational, testing, etc.. and using Capsule can provide this level of isolation to sharre the same infra resroures at the same time
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
Capsule is indeed awesome. Nevertheless, I think I have an even better option. If everything goes as planned, it should be published next Monday.
@TAICHI1SCO
@TAICHI1SCO 3 жыл бұрын
Hey Viktor, thanks for the video Can you do a video on multi-cluster/tenacy monitoring using using prometheus-stack and thanos/cortex with HA
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
That's a good one. Adding it to my TODO list... :)
@marcin_karwinski
@marcin_karwinski Жыл бұрын
I wonder if Capsule could be paired with some WebUI/GUI for limited scope of actions but full UI for tenants...
@DevOpsToolkit
@DevOpsToolkit Жыл бұрын
I'll have a video about that in about 3 weeks :)
@SumanChakraborty0
@SumanChakraborty0 3 жыл бұрын
Thanks Victor for the wonderful explanation around multi-tenant clusters. How do you compare Capsule with other CNCF certified projects such as SAP Gardener or even Kubernetes Kubermatic Platform? These are really cool solutions to manage multitenancy across multi-geo locations.
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
Capsule is mostly focused on solving multi-tenancy problems within a cluster while those you mentioned are more focused on how to manage multiple clusters. I'm planning to do a video about both. In the meantime, a new video about a potentially better solution for multi-tenancy will be published in a few hours :)
@cajgazachar
@cajgazachar 3 жыл бұрын
Hi Viktor, thanks for the video, capsule looks interesting. Would you mind to make a video about automating cluster bootstrapping? Let's say, we provisioned our k8s cluster with a tool like terraform... Then comes all the other components which are required for real world production multi-tenant clusters like: argocd, sealed secrets, gatekeeper, istio, trident, prometheus, fluentbit, RBAC policies, namespaces for projects etc... How would you automate this? What we started to build up is that when we create the cluster the last step in the provisioning with terraform is to setup argocd and use app-to-app pattern to bring up all these components (starting with sealed secrets and a key restore). This seems to be working (we are at very early stage) but we would be interested in your thoughts :)
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
I do something similar. I would create a cluster with Terraform and do the initial installation of Argo CD and the root app which, initially, would have only Sealed Secrets and Argo CD (so that it manages itself). From there on, it's all about adding the rest of the resources to Git repos and letting Argo CD do the "magic". That being said, I'm moving towards a different model in which Crossplane would replace both Terraform and the initial k8s resources like, for example, Argo CD. On top of that, I'm using Crossplane Composites to simplify the process in a way that anyone can define anything in a very simple way. I'll be making a video (or a video videos) on that subject soon.
@stevenb7814
@stevenb7814 3 жыл бұрын
@@DevOpsToolkit are you saying that Crossplane can replace Argo CD all together or are you just talking about for bootstrapping a cluster? I would love to hear more about the solution you are working on. I love your videos!
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
I'm saying that crossplane can replace terraform as well as to do initial installation of Argo CD (even though that part is not important). Since crossplane is based on k8s resources, it is a great combination with Argo CD (not a replacement). With crossplane managing your infra, you can have everything aynced with Argo CD (not only your apps).
@anshuman2121
@anshuman2121 3 жыл бұрын
Nice informative video. Does capsule and open policy agent both has same work?
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
Conceptually, there is overlap. Part of Capsule is about ensuring that tenant "behave". However, that's only conceptually. In practice, it would be very hard (not to say impossible) to do the same though OPA simply because Kubernetes itself does not have multi-tenancy baked in. If you would use OPA for validating tenants operations, you'd still need a solution for creating tenants.
@jonassteinberg3779
@jonassteinberg3779 3 жыл бұрын
nice 1. or should I say, "nyice vun". elite videos!
@sergiykulanov5837
@sergiykulanov5837 3 жыл бұрын
Hi Viktor, Thank you for this video. Did you have any chance to check/use kiosk from loft for multi-tenancy in k8s?
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
Not yet! Adding it to my TODO list... :)
@yassinemessaoud8619
@yassinemessaoud8619 3 жыл бұрын
This video came out in the right time thank you !
@alex24x7
@alex24x7 3 жыл бұрын
Hi Victor! Thank you for review. Is it better than Loft?
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
It's different. Capsule makes multi-tenancy "invisible" for users, but its scope is smaller than Loft. I'll do my best to create a comparison video.
@DevOpsToolkit
@DevOpsToolkit 3 жыл бұрын
Just published a review of Loft vcluster :) kzbin.info/www/bejne/gKKlm6OspZdpbrs
@alex24x7
@alex24x7 3 жыл бұрын
@@DevOpsToolkit Good job, thank you Victor!
@autohmae
@autohmae 2 жыл бұрын
At least one provider delivers managed k3s, thus having a lot less overhead for the control plane and still having per customer/tenant clusters
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
Oh yeah. When using k3s abd with something as fast and cheap as, let's say Civo, it does not make sense to create virtual clusters. However, most of k8s usage is in AWS, GCP, and Azure and they are slow and cost a lot for such usage.
@autohmae
@autohmae 2 жыл бұрын
@@DevOpsToolkit yes, you (unintentionally ?) guessed right it was Civo which I had in mind. It really makes you think: do we really need k8s for new clusters ? How much am I missing with going with k3s ?
@DevOpsToolkit
@DevOpsToolkit 2 жыл бұрын
@@autohmae Let's put it this way... For larger clusters, the difference in the time to create a cluster or the resource overhead is not big (relatively speaking). So, i would not go with k3s for HA cluster with many nodes. It's not worth it. I still prefer GKE, EKS, AKS, etc. But, if you have smaller clusters and, especially if you create/destroy them often, those differences are relevant and using k3s makes a lot of sense. I might, for example, use GKE as the production cluster, but Civo for development or preview clusters that are created/destroyed on-demand and relatively frequently.
@autohmae
@autohmae 2 жыл бұрын
@@DevOpsToolkit my thinking is where I want to move to is gitops+Cluster-API. So yeah.
@viveknidhi
@viveknidhi 3 жыл бұрын
Nice 👍
How To Create Virtual Kubernetes Clusters With vcluster By loft
22:00
DevOps Toolkit
Рет қаралды 10 М.
Argo Events - Event-Based Dependency Manager for Kubernetes
34:28
DevOps Toolkit
Рет қаралды 37 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 3,3 МЛН
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 8 МЛН
Multi-Cluster Kubernetes - Past, Present, Future - Tim Hockin - #swisscnd 2022
29:32
Cloud Native Bern / Swiss Cloud Native Day
Рет қаралды 3,3 М.
Multi-tenancy architecture | The Backend Engineering Show
25:29
Hussein Nasser
Рет қаралды 41 М.
Highly Available Kubernetes Clusters - Best Practices - Meaghan Kjelland & Karan Goel, Google
29:08
CNCF [Cloud Native Computing Foundation]
Рет қаралды 24 М.
Kubernetes: One Cluster or Many?
14:03
VMware Cloud Native Apps
Рет қаралды 36 М.
K3d - How to run Kubernetes cluster locally using Rancher K3s
24:04
DevOps Toolkit
Рет қаралды 34 М.
Why is Kubernetes everywhere? | Kelsey Hightower
59:27
OpenSauced
Рет қаралды 4,2 М.
Scaling Argo Security and Multi-Tenancy in AWS EKS at the New York... David Grizzanti & Luke Philips
24:26
CNCF [Cloud Native Computing Foundation]
Рет қаралды 1,2 М.
Using Rancher For Creating And Managing Kubernetes Clusters
27:29
DevOps Toolkit
Рет қаралды 63 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 3,3 МЛН