forked from abelperezok/kubernetes-raspberry-pi-cluster-hat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb8766a
commit 978f9c4
Showing
8 changed files
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Build Binaries From Source Code | ||
# Build Binaries from Source Code | ||
|
||
Since ARMv6 is not officially supported by Kubernetes, the binaries need to be built from the source in order to get them properly to work. They are all written in Go which facilitates the process of cross-compiling. However, I found it even easier using qemu to to run ARM native golang docker images to compile. | ||
|
||
|
@@ -9,7 +9,7 @@ Use docker to build the binaries, although it’s not necessary, it removes the | |
* [arm32v7/golang](https://hub.docker.com/r/arm32v7/golang) for armhf - Pi 3 | ||
* [arm32v5/golang](https://hub.docker.com/r/arm32v5/golang) for armel - Pi Zero | ||
|
||
## Build Kubernetes Binaries For Master Node | ||
## Build Kubernetes Binaries for Master Node | ||
|
||
```shell | ||
git clone https://github.com/kubernetes/kubernetes.git | ||
|
@@ -41,7 +41,7 @@ scp _output/local/bin/linux/arm/kube* [email protected]:~/bin | |
|
||
> **Note** - kubectl can be reused for worker nodes as well, it worked for me. | ||
## Build Kubernetes Binaries For Worker Nodes | ||
## Build Kubernetes Binaries for Worker Nodes | ||
|
||
Before building kubelet, I found numerous issues with a missing cgroup (cpuset) in the raspberry pi zero. I’m not entirely sure why this is a requirement and I removed it from the code. I published my findings in the [raspberry pi forum](https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=219644#p1348691). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
Run in master node, $HOME directory, also embed all the certificates in the config file, in case we move the temporary directory pki and easier if we want to download the configuration file. | ||
|
||
## Prepare configuration file | ||
## Prepare Configuration File | ||
|
||
```shell | ||
KUBERNETES_PUBLIC_ADDRESS=192.168.1.164 | ||
|
@@ -32,7 +32,7 @@ The result is stored in `~/.kube/config` file, download the config file. | |
scp [email protected]:~/.kube/config /home/abel/.kube/ | ||
``` | ||
|
||
## Verification from remote computer | ||
## Verification from Remote Computer | ||
|
||
```shell | ||
$ kubectl version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters