1 00:00:00,940 --> 00:00:05,380 In this video we're going to learn more about these config files that we're going to write to create 2 00:00:05,410 --> 00:00:07,870 actual pods services and deployments. 3 00:00:08,240 --> 00:00:11,960 So let's take a look at a couple of notes on his config files. 4 00:00:12,020 --> 00:00:12,330 OK. 5 00:00:12,370 --> 00:00:16,390 So first off these config files that we're going to write are going to tell Coober Nettles about the 6 00:00:16,390 --> 00:00:20,590 different deployments pods and services that we want to create inside of our cluster. 7 00:00:20,590 --> 00:00:25,440 By the way collectively referred to deployments pods services and other similar things that we create 8 00:00:25,440 --> 00:00:27,520 in communities as objects. 9 00:00:27,520 --> 00:00:34,400 So in other words we are creating config files to create and configure objects these config files are 10 00:00:34,400 --> 00:00:36,680 gonna be written entirely in Gamble's syntax. 11 00:00:36,800 --> 00:00:38,650 If you're not familiar with Yentl don't sweat it. 12 00:00:38,660 --> 00:00:42,550 It's really easy syntax to pick up especially if you're already familiar with Jason. 13 00:00:42,590 --> 00:00:47,320 It's essentially Jason with just less curly braces and whatnot. 14 00:00:47,360 --> 00:00:51,370 Now the next couple of notes I'm going to write out here are going to seem a little bit strange for 15 00:00:51,380 --> 00:00:55,340 right now but as soon as we start ready on our first config file I think they'll make a little bit more 16 00:00:55,340 --> 00:00:55,870 sense. 17 00:00:55,880 --> 00:01:00,140 So I'm going to say them right now because they are so important to understand what we're not gonna 18 00:01:00,140 --> 00:01:05,760 understand just yet but you'll see it in just a moment so first off whenever we write a config file 19 00:01:05,920 --> 00:01:09,100 we're always going to store these files with our projects. 20 00:01:09,120 --> 00:01:13,560 So in other words we're going to commit these to get and make sure that we store them in some kind of 21 00:01:13,620 --> 00:01:14,830 source control. 22 00:01:14,940 --> 00:01:20,280 The reason for that is that these config files that we write are really documentation of what our communities 23 00:01:20,280 --> 00:01:21,530 cluster is doing. 24 00:01:21,600 --> 00:01:26,580 It can take files can tell another engineer who starts to look at your code about the different deployments 25 00:01:26,640 --> 00:01:28,950 services in pods that you have created. 26 00:01:28,950 --> 00:01:33,690 And it's really the best documentation you're going to have to tell other engineers what your cluster 27 00:01:33,690 --> 00:01:36,680 is doing with that mind. 28 00:01:36,700 --> 00:01:39,120 It is possible to create these object things. 29 00:01:39,130 --> 00:01:43,720 So again an object is deployment pod service without using vague files. 30 00:01:43,750 --> 00:01:49,570 And I highly recommend that you do not do this you should not create objects directly at the command 31 00:01:49,570 --> 00:01:52,020 line by writing in commands to create an object. 32 00:01:52,090 --> 00:01:58,450 We're always going to write out these config files because they are going to be again a source of documentation 33 00:01:58,510 --> 00:02:03,070 to tell you in other people in the future exactly what is going on inside your cluster. 34 00:02:03,130 --> 00:02:08,020 And the reason I say this so prominently is because once you start to read the carbon that is documentation 35 00:02:08,260 --> 00:02:13,120 they're going to tell you to run commands at your terminal to directly create objects without using 36 00:02:13,120 --> 00:02:13,960 any config file. 37 00:02:14,590 --> 00:02:20,320 I highly recommend you only follow that Cuba needs documentation for testing purposes and learning purposes 38 00:02:20,650 --> 00:02:26,040 do not create resources or objects directly at the terminal in a production environment. 39 00:02:26,080 --> 00:02:31,300 There are a couple of exclusions to that rule and we'll talk about what those exclusions are later on 40 00:02:32,640 --> 00:02:37,530 the other thing is that blog posts in addition will frequently tell you to run commands to create objects 41 00:02:37,560 --> 00:02:39,310 as opposed to using these config files. 42 00:02:39,460 --> 00:02:43,830 And if you see a blog post that tells you to do that just close the blog post because honestly the person 43 00:02:44,190 --> 00:02:46,100 is probably not giving you the best advice. 44 00:02:46,110 --> 00:02:51,470 Yeah you can use the command but who knows what else in that blog posts are cutting corners on as well. 45 00:02:51,510 --> 00:02:56,400 Now I don't really mean to smash on anyone who is going with that approach inside of a blog post but 46 00:02:56,400 --> 00:02:58,150 it's just my personal opinion. 47 00:02:58,200 --> 00:03:00,880 Use a config file at all times. 48 00:03:00,880 --> 00:03:04,410 So now at this point time you're posting okay like whatever Steven get to it. 49 00:03:04,410 --> 00:03:05,930 What is in a config file. 50 00:03:05,940 --> 00:03:07,570 All right I'm with you I understand. 51 00:03:07,590 --> 00:03:10,940 So when we're pause we're gonna write out our first config file in the next video.