Skip to main content
Account
Lesson 3 of 4

Add Cloud Commands with Plugins

Find, install, list, use and upgrade datumctl plugins, starting with DNS: create a zone and records and check nameserver delegation.

In collaboration with Datum

Add Cloud Commands with Plugins

Plugins Add the Commands You Need

datumctl stays small, and plugins add the cloud commands you need. If you’ve used kubectl plugins and krew, this workflow will feel familiar. In this lesson, you’ll:

  • Find, install, list and upgrade plugins
  • Install the DNS plugin, then create a zone and its records
  • Check nameserver delegation
  • See how plugins share your existing login and project context

Transcript

Generated from English captions. Select a timestamp to jump to that moment.

0:02 Hello and welcome back. In today's video we're continuing to explore Datum Cloud. In this video I want to show how you can use Datum Cloud or datumctl plugins to extend the feature capabilities of the CLI. Here you can see that my terminal says datumctl DNS and if we hit return datumctl very kindly offers to install the DNS plugin. I'm gonna hit no because that's not the only way to get plugins that would assume you know which plugins you need. And what if you just want to explore? Here we can do datumctl plugin search which is going to show us that there are currently four plugins available for me to use

0:48 with datumctl. The AI assistant. You can also search for specific plugins by just adding DNS or whatever your search term is to the end of command. Alright, so let's do datumctl plugin install. We can then run datumctl plugin list. We'll see that I have the compute plugin installed as well as DNS. We can run datum control DNS version and dash dash help. This shows us all the commands that this new plugin brings to the my datumctl command line. What we can see here is that we can manage zones and DNS records as well as some boring completion help conversion

1:33 information. So let's run datumctl, who am I, we'll see that my user is still David Flanagan. And my context right now is the Rawkode Academy organization and the Rawkode Academy project. We can list my zones and I'll be no surprise to you because we've seen this zone show up many times now that Rawkode Live is sat here managed by datum. We could also create a zone, like exampledemo.com, which is the worst example in the world. Now we can also create our zones via this plugin as well and I actually own Rawkode. Xyz, so why not migrate

2:14 it to datum. We hit the button, it's going to create it, assign some name servers and now it's failed at an error state but because we have to prove that this is our domain. So the fixes here is to delete it or verify ownership of the domain. So here we are, I'm logged on to the datum console, don't worry we will take a broader look at this very, very soon. But we can see that we have this domain XYZ and we can verify or do we could do automatic verification or manual verification. So if you wanna set up your own HTTP tokens on your website

2:59 or add a text record, you can do that. But I really love the verify your domain button, which detects that my registrar is Cloudflare and offers automatic setup. You just click this button, and Cloudflare and datum will create the text record below on your zone for you, giving you the confirmation. And there we have it, our domain has been successfully configured and we can go back to the console. So now we're back at the terminal, we can go and create our first DNS record. Now I'm just gonna create www, point it to a random IP

3:43 address and let the plug in do its job managing my DNS. Now if you're looking at us going why would I ever want to use a plug in and this manual approach to configuring zones, Don't worry, in the next video we're gonna take a look at how we can utilize the Terraform provider. So stay tuned. But right now we are using datumctl with a DNS plugin to create zones and manage our records. So we can disable email, list our records and that is looking. So let's describe our zone and check our name servers. Looks like that's

4:22 not propagated yet, but we could give that about more time. We can get our zone information as JSON, and if we need to, we can do all of our plug in management with datumctl plug in upgrade. Now you can think of this plugin system as very similar to krew with kubectl. Only with kubectl and Kubernetes, you need to install krew separately and manage your plugins this way. But datum makes this easier. It's all built in by default, datumctl. It supports multiple indices, so here we can list and see we have the official datum plugin repository. And that's it. datumctl is super powerful. You

5:09 can add plugins for new functionality, run your own index, manage extra resources, and there's just a whole lot of fun to explore the Datum control plane. So join me in the next video where we take a look at the cloud native with Terraform. We'll see you soon.

Course curriculum (4 lessons)
  1. 01. Know kubectl? Meet datumctl
  2. 02. Explore Datum with the datumctl Console
  3. 03. Add Cloud Commands with Plugins
  4. 04. Make Safe Changes to Datum