You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-41Lines changed: 21 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,10 @@ The container network range is `170.33.0.0/16` owned by flanneld with `host-gw`
56
56
57
57
#### Setup
58
58
59
-
Clone this repo into your local machine and download kubernetes binary release first and move them into the root directory of this repo.
59
+
Clone this repo into your local machine and download kubernetes binary release first and move them into the root directory of this repo (GitBash for the Windows must be run as Administrator to install ```vagrant-winnfsd``` plugin).
The next time you run `vagrant up`, vagrant will import the local box automatically.
89
90
90
-
**For Windows**
91
+
#### Note for Windows
92
+
- The project will run some bash script under the VirtualMachines. These scripts line ending need to be in LF. Git for windows set ```core.autocrlf``` true by default at the installation time. When you clone this project repository, this parameter (set to true) ask git to change all line ending to CRLF. This behavior need to be changed before cloning the repository (or after for each files by hand). We recommand to turn this to off by running ```git config --global core.autocrlf false``` and ```git config --global core.eol lf``` before cloning. Then, after cloning, do not forget to turn the behavior back if you want to run other windows projects: ```git config --global core.autocrlf true``` and ```git config --global core.eol crlf```.
91
93
92
-
While running `vagrant up` in Windows, you will see the following output:
93
94
94
-
```bash
95
-
G:\code\kubernetes-vagrant-centos-cluster>vagrant up
96
-
Bringing machine 'node1' up with 'virtualbox' provider...
97
-
Bringing machine 'node2' up with 'virtualbox' provider...
98
-
Bringing machine 'node3' up with 'virtualbox' provider...
99
-
==> node1: Importing base box 'centos/7'...
100
-
==> node1: Matching MAC address for NAT networking...
101
-
==> node1: Setting the name of the VM: node1
102
-
==> node1: Clearing any previously set network interfaces...
103
-
==> node1: Specific bridge 'en0: Wi-Fi (AirPort)' not found. You may be asked to specify
104
-
==> node1: which network to bridge to.
105
-
==> node1: Available bridged network interfaces:
106
-
1) Realtek PCIe GBE Family Controller
107
-
2) TAP-Windows Adapter V9
108
-
==> node1: When choosing an interface, it is usually the one that is
109
-
==> node1: being used to connect to the internet.
110
-
node1: Which interface should the network bridge to?
111
-
node1: Which interface should the network bridge to?
112
-
```
113
-
114
-
Press `1` to continue. (Choose the corresponding network interface for node2 and node3)
115
-
116
-
You will see these output while node3 is going to be complete:
95
+
If you have executed the previous git global configuration then, you will not see these output while node3 is going to be complete:
117
96
118
97
```bash
119
-
node3: Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.
98
+
node3: Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.
120
99
node3: Created symlink from /etc/systemd/system/multi-user.target.wants/kube-proxy.service to /usr/lib/systemd/system/kube-proxy.service.
121
100
node3: deploy coredns
122
101
node3: /tmp/vagrant-shell: ./dns-deploy.sh: /bin/bash^M: bad interpreter: No such file or directory
@@ -145,7 +124,7 @@ There are 3 ways to access the kubernetes cluster.
145
124
146
125
**local**
147
126
148
-
In order to manage the cluster on local you should Install `kubectl` command line tool first.
127
+
In order to manage the cluster on local you should Install `kubectl` command line tool first(But, you don't need to do it manual because of ```install.sh``` script itself do this)
149
128
150
129
Go to [Kubernetes release notes](https://kubernetes.io/docs/imported/release/notes/), download the client binaries, unzip it and then move `kubectl` to your `$PATH` folder, for MacOS:
151
130
@@ -171,6 +150,7 @@ Login to the virtual machine for dubuging. In most situations, you have no need
171
150
vagrant ssh node1
172
151
sudo -i
173
152
kubectl get nodes
153
+
kubectl get pods --namespace=kube-system
174
154
```
175
155
176
156
**Kubernetes dashboard**
@@ -214,7 +194,7 @@ Refresh the browser and click `Advance`, skip it. You will see the dashboard pag
214
194
Run this command on your local machine.
215
195
216
196
```bash
217
-
kubectl apply -f addon/heapster/
197
+
kubectl apply -f /vagrant/addon/heapster/
218
198
```
219
199
220
200
Append the following item to your local `/etc/hosts` file.
@@ -232,7 +212,7 @@ Open the URL in browser: <http://grafana.jimmysong.io>
232
212
Run this command on your local machine.
233
213
234
214
```bash
235
-
kubectl apply -f addon/traefik-ingress
215
+
kubectl apply -f /vagrant/addon/traefik-ingress
236
216
```
237
217
238
218
Append the following item to your local file `/etc/hosts`.
0 commit comments