1 00:00:01,210 --> 00:00:03,520 Well, it looks like my cluster is now all up and ready. 2 00:00:03,940 --> 00:00:08,420 We're now going to try to connect to that cluster from our local machine using cubes EDL. 3 00:00:08,980 --> 00:00:12,910 We're only doing this so that we can later debug our cluster, get logs and stuff like that. 4 00:00:13,270 --> 00:00:16,300 We are generally not going to manually deploy anything to our cluster. 5 00:00:16,390 --> 00:00:20,530 Again, we're only connecting to it to debug it and understand what is going on inside. 6 00:00:21,880 --> 00:00:25,530 Remember that in order to connect different clusters, we're going to use Kube CTO. 7 00:00:26,020 --> 00:00:30,250 We discussed this very briefly much earlier on inside the course as a very quick reminder. 8 00:00:30,530 --> 00:00:35,410 See, T.L. decides on how to connect to some given cluster by using something called context. 9 00:00:36,050 --> 00:00:41,320 Context refers to some configuration settings that tells cubes T.L. how to connect to, say, a local 10 00:00:41,320 --> 00:00:43,120 cluster that you're running on your machine. 11 00:00:43,570 --> 00:00:44,950 Maybe one on Google cloud. 12 00:00:45,220 --> 00:00:48,010 Or maybe the one that we just created on Digital Ocean. 13 00:00:49,160 --> 00:00:54,050 So we're going to have to create a second context to tell cutesy tale how to connect to that cluster 14 00:00:54,080 --> 00:00:55,070 that we just created. 15 00:00:56,060 --> 00:01:00,560 To create the second context, we're going to use the command line tool for interacting with digital 16 00:01:00,590 --> 00:01:01,460 ocean directly. 17 00:01:02,500 --> 00:01:07,990 We can get some instructions on how to install this digital ocean command line tool if we go back over 18 00:01:07,990 --> 00:01:11,010 to our digital ocean page and click on right here. 19 00:01:11,080 --> 00:01:13,300 Number two, install management tools. 20 00:01:15,130 --> 00:01:18,030 You'll then see a link right here to D.O.C. at T.L.. 21 00:01:18,670 --> 00:01:20,560 That is the command line tool that we want to install. 22 00:01:21,310 --> 00:01:24,370 If you do not see this little pop up window right here, no problem. 23 00:01:24,400 --> 00:01:28,570 Just open up a new browser tab and go to get hub, dot com digital ocean. 24 00:01:28,930 --> 00:01:29,420 Dr. Al. 25 00:01:30,380 --> 00:01:31,220 That's how I pronounce it. 26 00:01:31,340 --> 00:01:35,660 I don't know if that's actually how you're supposed to pronounce it, DLC, T.L. Dactyl good enough. 27 00:01:36,770 --> 00:01:38,990 So once here, we can find some installation directions. 28 00:01:40,820 --> 00:01:44,180 As usual, if you are on Mac OS, life is really easy. 29 00:01:44,240 --> 00:01:45,260 You can just use homebrew. 30 00:01:46,010 --> 00:01:50,900 Otherwise, if you are on Linux or Windows, you can scroll down a little bit more. 31 00:01:50,960 --> 00:01:53,810 Take a look at how to just download the binary if you're on Linux. 32 00:01:54,140 --> 00:01:57,550 If you're on Windows, you're probably going to want to identity installer instead. 33 00:02:00,010 --> 00:02:01,770 So go ahead and do the installation. 34 00:02:02,430 --> 00:02:06,600 Once the installation is complete, you should be able to open up your terminal. 35 00:02:07,570 --> 00:02:10,230 Ron Ductile and see some help like this up here. 36 00:02:11,560 --> 00:02:16,480 Once Doctora is installed, we have to then initialize it or essentially authenticate yourself with 37 00:02:16,480 --> 00:02:17,710 your digital ocean account. 38 00:02:18,370 --> 00:02:21,490 To do so, we're going to run the command ductal off in it. 39 00:02:22,120 --> 00:02:23,620 But first, we have to do one other thing. 40 00:02:23,710 --> 00:02:24,940 I kind of jumped ahead right there. 41 00:02:25,090 --> 00:02:26,380 Let's not run a command just yet. 42 00:02:27,170 --> 00:02:31,060 So to actually authenticate ourselves, we do have to go back over to the digital ocean dashboard. 43 00:02:31,960 --> 00:02:35,200 Over here, we're going to find on the bottom left hand side API. 44 00:02:36,800 --> 00:02:38,840 We're then going to generate a new token. 45 00:02:39,110 --> 00:02:44,450 So this is an access token that gives you full access programmatically over your digital ocean account. 46 00:02:46,160 --> 00:02:47,510 You can enter in a name right here. 47 00:02:47,680 --> 00:02:50,080 I'm going to put in ductile to this. 48 00:02:50,210 --> 00:02:51,620 I've already got one called ductal. 49 00:02:54,130 --> 00:02:58,060 And I'll be presented with that token right there and just, you know, by the time you watch this video, 50 00:02:58,090 --> 00:03:01,330 I will have already deleted this token, so don't bother trying to use this one. 51 00:03:02,440 --> 00:03:03,620 They will copy that, Tolkan. 52 00:03:04,620 --> 00:03:10,460 You'll then run that dactyl off in it once you run that, you'll be prompted to paste in the token so 53 00:03:10,470 --> 00:03:13,800 pasted in it enter and then you should be authenticated. 54 00:03:15,180 --> 00:03:20,040 Once it got dark still up and running, we can then use it to install a context to connect to our cluster 55 00:03:20,250 --> 00:03:22,260 into our local copy of Cube CTO. 56 00:03:22,840 --> 00:03:24,660 But at this point, we've already done a couple of things. 57 00:03:24,750 --> 00:03:28,830 And these next series of commands we're going to run are going to be just a little bit confusing. 58 00:03:28,920 --> 00:03:32,100 So let's pause right here and then make use of dactyl in just a moment.