1 00:00:07,850 --> 00:00:11,320 ‫Real quick before we get to the command line stuff, because that's important. 2 00:00:11,330 --> 00:00:16,820 ‫That's usually how you interact with Kubernetes is through the command line, and there are lots of 3 00:00:16,820 --> 00:00:17,890 ‫options with Kubernetes. 4 00:00:17,900 --> 00:00:21,560 ‫That's one of the main themes you'll see throughout this conversation I'm going to have with you about 5 00:00:21,560 --> 00:00:25,730 ‫Kubernetes is that there's lots of ways to do the same thing. 6 00:00:25,730 --> 00:00:31,340 ‫And that's because Kubernetes, unlike some of the Docker tools, comes very opinionated. 7 00:00:31,340 --> 00:00:37,700 ‫It allows you to do things in various ways to fit your workflow and basically your team's preference. 8 00:00:38,000 --> 00:00:43,550 ‫The challenge with that is often knowing what to do, what's the right way for you to do something. 9 00:00:43,550 --> 00:00:47,060 ‫So that requires a little more investment in learning the tools. 10 00:00:47,060 --> 00:00:52,590 ‫So in this quick lecture, I just want to warn you or educate you on that. 11 00:00:52,640 --> 00:00:54,470 ‫There are multiple ways to do this. 12 00:00:54,470 --> 00:00:57,830 ‫And so sometimes when I show you a command, there are multiple other ways to do it. 13 00:00:58,040 --> 00:01:03,530 ‫And the specifics that you'll see, whether you're looking on the blogs or in the Kubernetes documentation 14 00:01:03,530 --> 00:01:06,170 ‫are on the three main commands. 15 00:01:06,170 --> 00:01:13,280 ‫The three I'm talking about are cube control, run, cube control, create and cube control apply. 16 00:01:13,730 --> 00:01:16,580 ‫You'll see a couple of examples of using Cube Control Run. 17 00:01:16,580 --> 00:01:23,270 ‫It's probably the closest to Docker run that you would experience and then Cube Control Create can be 18 00:01:23,270 --> 00:01:27,800 ‫a similar experience to Docker create for swarm, right? 19 00:01:27,830 --> 00:01:34,700 ‫And then Cube Control apply might seem similar to a stack deploy with swarm. 20 00:01:34,700 --> 00:01:40,250 ‫And that's the best way if you know swarm to figure out where these belong that apply command at the 21 00:01:40,250 --> 00:01:42,350 ‫bottom there that is mostly for YAML. 22 00:01:42,350 --> 00:01:46,880 ‫That's really the only thing you're going to be doing there is applying YAML differences to your environment 23 00:01:46,880 --> 00:01:50,810 ‫and you'll do the same commands for creating or updating things. 24 00:01:51,140 --> 00:01:55,880 ‫The cube control run we're going to start out of the gate with and you'll notice that there's going 25 00:01:55,880 --> 00:01:57,440 ‫to be a warning in the next lecture. 26 00:01:57,530 --> 00:02:00,110 ‫Or if there isn't, then I've maybe replaced that lecture. 27 00:02:00,110 --> 00:02:06,560 ‫But there are warnings because cube control run is changing and it's actually reducing its scope. 28 00:02:06,560 --> 00:02:10,580 ‫It used to be something we would use to create all sorts of different things and there was automation 29 00:02:10,580 --> 00:02:11,210 ‫in the back end. 30 00:02:11,210 --> 00:02:17,810 ‫But nowadays the plan is they're going to reduce and deprecate a lot of the features that run has so 31 00:02:17,810 --> 00:02:20,360 ‫that it eventually only is designed to run a pod. 32 00:02:20,360 --> 00:02:26,060 ‫So you'll learn all about that later, but just know that throughout the next few videos and sections 33 00:02:26,060 --> 00:02:30,980 ‫that you'll see cube control run and sometimes cube control create commands. 34 00:02:30,980 --> 00:02:36,380 ‫And you might even see future commands like expose and apply and just realize that there's probably 35 00:02:36,380 --> 00:02:38,360 ‫other ways to do these commands. 36 00:02:38,360 --> 00:02:44,540 ‫I don't always have a preference for which one's the right one, but you'll learn as we go that depending 37 00:02:44,540 --> 00:02:50,000 ‫on your style of working, whether it's imperative or declarative, we'll get into that later. 38 00:02:50,000 --> 00:02:53,780 ‫That will indicate whether or not you need to use a certain command over another. 39 00:02:53,780 --> 00:02:57,080 ‫So just be aware that those are there and let's get started.