0:02 So we're all familiar with kubectl. It's how we work with Kubernetes clusters. So what if you could transfer your knowledge from kubectl to something else? What if you could transfer your knowledge of kubectl to your cloud platform? What if you could transfer that knowledge from kubectl to datumctl? Well, short story short, you can. If you were in dash dash help, you will see that datumctl is actually very similar to kubectl for working with Kubernetes clusters. Only with datumctl, we can speak to datum. So let's run the datumctl logout. And we'll ignore that error because I had already logged out anyway, so we're good. And then
0:56 let's date them log in. Now that it popped open a browser tab, I clicked the button, and we can see here that I'm now successfully logged in as david @Rawkode.dev. Here, we can see my projects and my organizations. From my personal one to my personal project to my Rawkode Academy project and the Rawkode... Or to the Rawkode Academy org and the Rawkode Academy project. There we go. So let's just select my perf column. And it tells me I need a few details, let me just do that now with some movie magic. So now we have selected our personal project, we can run
1:35 who am I and as well as seeing that at david.rockode.dev, which we already knew, we now see the broader context. That just means that we have an organization and a project that is currently active. This is no different from a Qt control context when you're working with multiple customers. And just like kubectl, we can run datumctl. Ctx. The kubectl syntax is a little bit different, but, you know, it doesn't have to be identical. This, I actually find a little bit easier to work with. So we can see our context, we can use an alternative context, this is just a triple of your organization's
2:13 log and your project's log and you can see we switch context, then we can run who am I again and we can see that new context is set for data and control. We can use get to request objects within the data and control plane, specifically here, let's get all of the projects within an organization. Now we can see that my Rawkode Academy project is at this point a hundred and forty one days old. Damn. If you want, you can use environment variables to override the context for individual commands. Here, I can change the project and run the UMI again. What's
2:59 nice here is you can see the overrides when they exist under who am I command, which just makes debugging when it's needed a little bit easier. Now, also like kubectl, we have the ability to create API resources. What things can I interact with dev data control? And we can see here, there's a lot. So let's group this with the API group being we just want to understand DNS networking within datumctl. Here, we can see that we can set DNS zones, record sets, zone classes, and even DNS zone discoveries. Now everyone who has seen any of my videos before knows that my most favorite secure control
3:46 command in the whole world is explain because it allows you to interact or understand the resources within your cluster without having to go and find any documentation. datumctl is no exception. Here, we can explain DNS zones and get a massive dump of all the information that we need to understand of how to compose that object for the Datum control plane. Not only that, we can do the kubectl's trick of just dot an end to the spec to understand specific parts in more detail as well. So let's get our DNS zones. We can see here I have a zone configured called Rawkode
4:24 live. We can run dash o byte again like kubectl. Right? All your knowledge transfers right over to datumctl. And if you want to do dash o yaml, of course, we can do that too. Perfect. Now another cool trick for kubectl power users is to validate to use output formatting with JSON path to request individual properties. The DOCTRL supports that as well. And if you want to query all of your DNS zones by using a label selector, datumctl has got you covered there too. You really should have picked a label that I had in play though. And of course, when the time comes,
5:03 you can describe your resources with datumctl as well. Now, the final thing I want to show you is that I have repeatedly said datumctl, datumctl, kubectl, kubectl, these are the same. They're knowledge transfers. And you know what? Here's the secret sauce. The datumctl plane is a Kubernetes API server. You can actually just use kubectl to create all of your resources while speaking to Datum control plane. So here we can use datumctl to actually just update a kubectl and write it to a directory, specifying the project that we wish to work with. We can then export our kubectl or
5:42 use kubectl for kubectl, whatever your preference is. For me, I like to export kubectl. And then we can use kubectl API resources, creating the same API group for DNS networking. And, of course, we get the same results back because we've been speaking to a Kubernetes control plane this entire time. We can get our zones, we can describe our zones and you can use kubectl config to see how the magic happens. I think this is pretty cool and I hope that you do too. If you wanna learn more, go check out datum on GitHub on the link that's on the screen now. Have
6:31 fun.