Skip to content

Commit 46a6467

Browse files
authored
add install with minikube et al
extend About Kubernetes and more TODO
1 parent 2dc4bf3 commit 46a6467

File tree

4 files changed

+52
-3
lines changed

4 files changed

+52
-3
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a Code Lab style course for learning Kubernetes, with the following lessons:
44

5-
1. Your Kubernetes Environment (prerequisite)
5+
1. [Installation](docs/install.md) (prerequisite)
66
1. hello, world
77
1. Appendix
88
* [About Kubernetes](docs/appendix/about-kubernetes.md)

Diff for: TODO.md

+38
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
- [ ] More lessons:
2+
3+
- [ ] https://github.com/kvaps/kubectl-build (or https://github.com/vmware-tanzu/buildkit-cli-for-kubectl)
4+
- [ ] https://BuildPacks.io, see [KubeCon Prez](https://static.sched.com/hosted_files/kccnceu2021/f3/IntroductionToCloudNativeBuildpacks_StephenLevineJesseBrown_v1.pdf)
5+
- [ ] https://github.com/kvaps/kubectl-node-shell (+ https://github.com/containers/toolbox ?)
6+
- [ ] https://knative.dev
7+
- [ ] https://www.openfaas.com
8+
9+
- [ ] Other Kubernetes distributions than `minikube`:
10+
11+
- [ ] kubeadm
12+
- [ ] kind
13+
- [ ] https://github.com/rootless-containers/usernetes
14+
- [ ] https://microk8s.io
15+
- [ ] https://k3s.io (https://k3d.io)
16+
- [ ] https://k0sproject.io
17+
18+
- [ ] CoreOS instead of Debian on GCP: Debian works, but CoreOS SSH keys are somehow missing:
19+
(update https://docs.fedoraproject.org/en-US/fedora-coreos/provisioning-gcp/)
20+
21+
gcloud compute instances create kubernetes-codelab --zone europe-west4-c --min-cpu-platform "Intel Haswell" --image-project debian-cloud --image-family debian-10
22+
gcloud compute ssh kubernetes-codelab
23+
24+
gcloud compute instances create coreos2 --zone europe-west4-c --min-cpu-platform "Intel Haswell" --image-project fedora-coreos-cloud --image-family fedora-coreos-next
25+
gcloud compute ssh core@coreos2
26+
Using OS Login user [$USER] instead of requested user [core]
27+
$USER@$IP: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
28+
29+
gcloud compute instances create coreos1 --zone europe-west4-c --min-cpu-platform "Intel Haswell" --image-project fedora-coreos-cloud --image-family fedora-coreos-stable
30+
gcloud compute ssh coreos1
31+
$YOU@$IP: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
32+
33+
gcloud compute ssh core@coreos1
34+
Using OS Login user [$YOU] instead of requested user [core]
35+
36+
ssh: connect to host $IP port 22: Connection timed out
37+
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
38+
139
- [ ] GitHub Action (pre-commit hook) to lint all markdown, check links, etc.
240

341
- [ ] https://github.com/googlecodelabs/tools ?

Diff for: docs/appendix/about-kubernetes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
[Kubernetes](https://kubernetes.io) is an
44
[open source](https://github.com/kubernetes/kubernetes) container orchestrator.
5-
Google initiated this project in 2014, [inspired by Borg](https://kubernetes.io/blog/2015/04/borg-predecessor-to-kubernetes/) (see [original article](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/44843.pdf), the [original paper](https://storage.googleapis.com/pub-tools-public-publication-data/pdf/43438.pdf), and [second paper](https://dl.acm.org/doi/pdf/10.1145/3342195.3387517)). It has turned into one
6-
of / the most successful and active open source community, overshadowing earlier
5+
Google initiated this project in 2014, [inspired by Borg](https://kubernetes.io/blog/2015/04/borg-predecessor-to-kubernetes/) (see [original article](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/44843.pdf), the [original paper](https://storage.googleapis.com/pub-tools-public-publication-data/pdf/43438.pdf), and [second paper](https://dl.acm.org/doi/pdf/10.1145/3342195.3387517)). It has turned into [one
6+
of the most successful and active open source communities](https://www.cncf.io/blog/2017/06/05/30-highest-velocity-open-source-projects/), eclipsing earlier
77
similar projects such as Apache Mesos or Docker Swarm et al. Google is the
88
[company with most contributions](https://k8s.devstats.cncf.io/d/9/companies-table?orgId=1)
99
to this open source community.

Diff for: docs/install.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Install Kubernetes
2+
3+
To follow the next lessons in this tutorial, you need to have the following prerequisites:
4+
5+
1. a Kubernetes cluster
6+
1. access to that Kubernets cluster (i.e. credentials to it, in the form of a private key in a `kubectl.yaml` file)
7+
1. the `kubectl` CLI binary, aliased to `k`
8+
9+
There are many ways to get this. One of easiest ways to get started is to use https://minikube.sigs.k8s.io/docs/start.
10+
11+
We may add documentation about other approaches later (e.g. `kind`, `kubeadm`; or cloud hosted managed Kubernetes offerings like Google's GKE; or local distributions like k3s.io, k3s.io, OpenShift, et al).

0 commit comments

Comments
 (0)