1
00:00:02,260 --> 00:00:04,300
So let's get started on macOS.

2
00:00:04,300 --> 00:00:06,250
And first of all, we should check

3
00:00:06,250 --> 00:00:08,310
if we fulfill the requirements

4
00:00:08,310 --> 00:00:11,390
even though I'm very confident that you do,

5
00:00:11,390 --> 00:00:13,490
but you can simply copy this command

6
00:00:13,490 --> 00:00:17,690
from the before you begin section into your terminal,

7
00:00:17,690 --> 00:00:19,300
and you'll see this output.

8
00:00:19,300 --> 00:00:20,373
And somewhere in this output,

9
00:00:20,373 --> 00:00:25,373
you should see a colored VMX key or word.

10
00:00:25,810 --> 00:00:28,940
And if you see that, you're fulfilling the requirements,

11
00:00:28,940 --> 00:00:31,450
you can now move on to the next step.

12
00:00:31,450 --> 00:00:33,140
If you're not seeing this,

13
00:00:33,140 --> 00:00:36,120
you probably shouldn't be at this point in the course

14
00:00:36,120 --> 00:00:39,820
because then Docker shouldn't work either.

15
00:00:39,820 --> 00:00:43,350
So therefore, let's next install the kubectl tool,

16
00:00:43,350 --> 00:00:44,703
which we always need.

17
00:00:45,580 --> 00:00:47,910
Now we can visit the official installation guide

18
00:00:47,910 --> 00:00:49,310
to learn how that works.

19
00:00:49,310 --> 00:00:51,970
And it is really straightforward.

20
00:00:51,970 --> 00:00:54,450
You can either follow this first approach

21
00:00:54,450 --> 00:00:58,550
using curl or actually use Homebrew,

22
00:00:58,550 --> 00:01:00,730
which is an extra package manager,

23
00:01:00,730 --> 00:01:02,670
which you might need to install

24
00:01:02,670 --> 00:01:05,110
as instructed on the Homebrew page.

25
00:01:05,110 --> 00:01:07,820
It's just one command and really easy to do.

26
00:01:07,820 --> 00:01:09,650
So you can execute this command

27
00:01:09,650 --> 00:01:13,090
in your terminal to install Homebrew.

28
00:01:13,090 --> 00:01:15,160
And once you've got Homebrew installed,

29
00:01:15,160 --> 00:01:17,283
you can run brew install kubectl,

30
00:01:18,560 --> 00:01:20,120
so this command here

31
00:01:20,120 --> 00:01:24,073
to install the kubectl tool on your Mac.

32
00:01:24,940 --> 00:01:26,280
So that's what I'm doing here.

33
00:01:26,280 --> 00:01:28,310
I'm now installing this tool

34
00:01:28,310 --> 00:01:30,820
and this can take a couple of minutes,

35
00:01:30,820 --> 00:01:32,680
but once it is finished,

36
00:01:32,680 --> 00:01:35,820
you will have to kubectl tool installed locally

37
00:01:35,820 --> 00:01:37,600
on your Mac system.

38
00:01:37,600 --> 00:01:41,680
And we will need that to communicate with the Cluster later.

39
00:01:41,680 --> 00:01:44,370
So let's wait for that to finish.

40
00:01:44,370 --> 00:01:46,690
And once it's finished,

41
00:01:46,690 --> 00:01:48,320
you can check whether it worked

42
00:01:48,320 --> 00:01:53,163
by running this command here, kubectl version --client.

43
00:01:54,040 --> 00:01:55,720
And you should see some output here

44
00:01:55,720 --> 00:01:58,713
which proves that it was installed successfully.

45
00:02:01,070 --> 00:02:04,530
So now that is kubectl installed,

46
00:02:04,530 --> 00:02:06,690
now we can install minikube

47
00:02:06,690 --> 00:02:10,120
to have that local development Cluster.

48
00:02:10,120 --> 00:02:13,310
And for this, you need a hypervisor first,

49
00:02:13,310 --> 00:02:15,690
which is basically the software,

50
00:02:15,690 --> 00:02:18,773
you could say, which will create that virtual machine.

51
00:02:19,700 --> 00:02:21,560
You can pick any of the three,

52
00:02:21,560 --> 00:02:23,850
but I will go with VirtualBox

53
00:02:23,850 --> 00:02:25,890
since this also works on Windows

54
00:02:25,890 --> 00:02:28,290
and therefore I have one and the same setup

55
00:02:28,290 --> 00:02:29,583
on Windows and macOS.

56
00:02:30,730 --> 00:02:33,630
You can of course choose any of the three.

57
00:02:33,630 --> 00:02:35,570
So on the VirtualBox page,

58
00:02:35,570 --> 00:02:39,550
you can now install VirtualBox on your Mac

59
00:02:39,550 --> 00:02:42,480
simply by clicking on OS X hosts here

60
00:02:44,270 --> 00:02:48,223
and then downloading this installer here in the end.

61
00:02:49,330 --> 00:02:51,513
And with that downloaded,

62
00:02:52,660 --> 00:02:56,683
we can start this installer, this VirtualBox installer.

63
00:02:57,880 --> 00:02:59,400
Follow the steps we see here,

64
00:02:59,400 --> 00:03:01,200
so double click on this icon

65
00:03:02,140 --> 00:03:05,600
and then walk through the installer you should get here.

66
00:03:05,600 --> 00:03:08,880
Which, of course, again can take a couple of minutes.

67
00:03:08,880 --> 00:03:12,470
If you get a system extension block warning,

68
00:03:12,470 --> 00:03:16,573
go to your settings, make sure you can change them,

69
00:03:17,640 --> 00:03:22,640
and click allow here and close this and run this again.

70
00:03:25,640 --> 00:03:27,663
This time it should now succeed.

71
00:03:29,380 --> 00:03:31,070
That looks better.

72
00:03:31,070 --> 00:03:33,570
And now with that installed,

73
00:03:33,570 --> 00:03:35,630
we've got VirtualBox installed

74
00:03:35,630 --> 00:03:38,363
and therefore we can now install minikube.

75
00:03:39,380 --> 00:03:41,370
Again, we can do this with Homebrew,

76
00:03:41,370 --> 00:03:46,370
which we already installed earlier for the kubectl command.

77
00:03:46,570 --> 00:03:48,880
We don't need to install Homebrew again,

78
00:03:48,880 --> 00:03:52,500
but now we can run brew install minikube

79
00:03:52,500 --> 00:03:57,500
to install this minikube playground environment tool,

80
00:03:57,560 --> 00:03:59,140
you could say,

81
00:03:59,140 --> 00:04:01,400
which again can take a couple of minutes.

82
00:04:01,400 --> 00:04:04,140
And once you got it installed,

83
00:04:04,140 --> 00:04:06,120
you can confirm the installation

84
00:04:06,120 --> 00:04:11,120
by calling minikube start --driver=

85
00:04:12,460 --> 00:04:17,459
and then your virtual hypervisor you chose before.

86
00:04:17,550 --> 00:04:20,130
So I just installed VirtualBox.

87
00:04:20,130 --> 00:04:22,089
So this is my driver.

88
00:04:22,089 --> 00:04:24,820
You can see a list of all drivers here.

89
00:04:24,820 --> 00:04:27,950
But, of course, you should choose the one you installed.

90
00:04:27,950 --> 00:04:30,070
And if that was all the VirtualBox,

91
00:04:30,070 --> 00:04:34,400
you just use VirtualBox here and set this as a driver,

92
00:04:34,400 --> 00:04:36,770
which simply instructs minikube

93
00:04:36,770 --> 00:04:41,700
to use VirtualBox to create this demo Cluster in.

94
00:04:41,700 --> 00:04:43,440
So if I now hit enter,

95
00:04:43,440 --> 00:04:44,780
this gets created

96
00:04:44,780 --> 00:04:47,170
and this again can take a couple of minutes,

97
00:04:47,170 --> 00:04:50,400
but now this in the end sets up this virtual machine

98
00:04:50,400 --> 00:04:54,137
on your local machine and it creates the Cluster,

99
00:04:54,137 --> 00:04:57,770
the Kubernetes Cluster inside of that virtual machine.

100
00:04:57,770 --> 00:04:59,630
It creates the master node

101
00:04:59,630 --> 00:05:03,050
and installs all the software the master node needs on it.

102
00:05:03,050 --> 00:05:06,263
And it also installs all the worker nodes software.

103
00:05:07,200 --> 00:05:08,910
So once this is completed,

104
00:05:08,910 --> 00:05:11,410
once this instruction here is done,

105
00:05:11,410 --> 00:05:14,820
we have our local development Cluster

106
00:05:14,820 --> 00:05:18,370
which we can then control with the kubectl command

107
00:05:18,370 --> 00:05:22,510
and where we can then apply our Kubernetes configuration

108
00:05:22,510 --> 00:05:27,510
to run our containers inside of this demo local Cluster.

109
00:05:28,520 --> 00:05:31,980
And the cool thing is that the configuration we come up with

110
00:05:31,980 --> 00:05:36,000
will then later all the work in a remote Cluster,

111
00:05:36,000 --> 00:05:39,167
for example, in a Cluster set up on AWS.

112
00:05:40,500 --> 00:05:42,660
But we'll see that in action later

113
00:05:42,660 --> 00:05:46,000
once we dive into deploying our Kubernetes setup

114
00:05:46,000 --> 00:05:48,100
to remote machines.

115
00:05:48,100 --> 00:05:50,750
So for the moment, let's wait for this to finish

116
00:05:50,750 --> 00:05:53,363
and let's then see whether everything works.

117
00:05:54,950 --> 00:05:57,270
So now it finished for me

118
00:05:57,270 --> 00:05:59,880
and we can now verify whether it works

119
00:05:59,880 --> 00:06:04,880
by calling or by running minikube status, minikube status.

120
00:06:07,760 --> 00:06:08,610
This looks good.

121
00:06:08,610 --> 00:06:10,960
Everything is up and running

122
00:06:10,960 --> 00:06:15,960
and we can now all the run minikube dashboard, woops!

123
00:06:16,410 --> 00:06:20,210
minikube dashboard, that's the correct command

124
00:06:20,210 --> 00:06:24,033
to bring up a web dashboard of our Cluster.

125
00:06:25,110 --> 00:06:27,540
This is a process which keeps on running.

126
00:06:27,540 --> 00:06:30,000
You can quit it with Ctrl+C,

127
00:06:30,000 --> 00:06:34,110
but it should also open up a new tab in your browser,

128
00:06:34,110 --> 00:06:37,140
this tab, and there you can actually see

129
00:06:37,140 --> 00:06:39,370
your running Cluster.

130
00:06:39,370 --> 00:06:41,800
And this is simply some utility tool,

131
00:06:41,800 --> 00:06:43,460
which you can use to see

132
00:06:43,460 --> 00:06:45,990
for example, any running pods

133
00:06:45,990 --> 00:06:48,080
of which we have none at the moment,

134
00:06:48,080 --> 00:06:51,790
because we haven't created any Kubernetes deployment,

135
00:06:51,790 --> 00:06:55,080
but we will be able to basically see what's going on

136
00:06:55,080 --> 00:06:57,530
in our Cluster here.

137
00:06:57,530 --> 00:06:59,290
So for the moment, I'll quit this

138
00:06:59,290 --> 00:07:02,020
and quit this process with Ctrl+C,

139
00:07:02,020 --> 00:07:05,423
but we can definitely say that everything is working now.

140
00:07:06,300 --> 00:07:07,840
So now in the next lecture,

141
00:07:07,840 --> 00:07:09,870
we'll set this up on Windows.

142
00:07:09,870 --> 00:07:13,240
Of course, you can skip this if you have no Windows system

143
00:07:13,240 --> 00:07:15,720
and thereafter we'll get started

144
00:07:15,720 --> 00:07:19,263
with working with Kubernetes on this demo Cluster.

