Skip to content

Commit 7e6f412

Browse files
committed
added additional exercises for initial chapters.
1 parent 5403831 commit 7e6f412

File tree

8 files changed

+62
-10
lines changed

8 files changed

+62
-10
lines changed

exercises/00-environment.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

exercises/20-intro.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#### 1. Visit Kubernetes Official Documentation and get a feel of it. You will be refering it a lot, when you start using Kubernetes.
2+
`Reference`: [K8s Documentation](https://kubernetes.io/docs)
3+
4+
#### 2. Read about kubernetes in the following blog. This has addiotional information which we have not covered in the video.
5+
`Reference`: [K8s Overview](https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/)
6+
7+
#### 3. CoreOS has created a very good white paper about Kubernetes for beginners. Go through it.
8+
`Reference`: [K8s Primer](https://coreos.com/resources/index.html#ufh-i-339012759-kubernetes-primer)
9+
10+
#### 4. Kubernetes explained from a Opertions guy's POV.
11+
`Reference`: [K8s for an Ops guy](https://www.youtube.com/watch?v=HlAXp0-M6SY)
12+
13+
#### 5. Create a high level architecture for your application which has to be deployed on Kubernetes. Brainstorm among your peers and see if you can fix the pieces together.
14+

exercises/30-path-to-automation.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#### 1. GCP has a very good resource on Namespaces if you want to know more
2+
`Reference`: [Namespaces Best Practices](https://cloudplatform.googleblog.com/2018/04/Kubernetes-best-practices-Organizing-with-Namespaces.html)
3+
4+
#### 2. Learn more about Pods from official K8s documentation
5+
`Reference`: [Pod Reference](https://kubernetes.io/docs/concepts/workloads/pods/pod/)
6+
7+
#### 3. Read more on Replica Set and how it works
8+
`Reference`: [ReplicaSet Reference](https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/)
9+
10+
#### 4. You should know the difference between Replication Controller, Replica Set and Deployments. Read the following blog for more detail.
11+
`Reference`: [ReplicaSets Vs ReplicationControllers](https://www.mirantis.com/blog/kubernetes-replication-controller-replica-set-and-deployments-understanding-replication-options/)
12+
13+
#### 5. Service Discovery is an important feature of K8s. Learn more by reading the following article.
14+
`Reference`: [Service Discovery in K8s](https://coreos.com/kubernetes/docs/latest/services.html)

exercises/50-environment.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#### 1. Create a new K8s cluster and change its network plugin from `Weave` to `Cannel`.
2+
`Reference`: [Create K8s cluster using Kubeadm](https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm)
3+
4+
#### 2. When you create a K8s cluster using Kubeadm, you lost the init token accidently. How do you recover this init token again?
5+
`Reference`: [Kubeadm-Token](https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-token/)
6+
7+
#### 3. You have launched a K8s cluster of version 1.8 and want to upgrade it to version 1.9. How do you achieve that?
8+
`Reference`: [Kubeadm Upgrade](https://kubernetes.io/docs/tasks/administer-cluster/upgrade-downgrade/kubeadm-upgrade-1-9/)
9+
10+
#### 4. While running kubeadm init comamnd, you see the following error. How would you fix it? [preflight]
11+
```
12+
WARNING: ebtables not found in system path"
13+
```
14+
15+
#### 5. kubeadm init command fails with following error. How woudl you fix it?
16+
```
17+
error: failed to run Kubelet: failed to create kubelet:
18+
misconfiguration: kubelet cgroup driver: "systemd" is different from docker cgroup driver: "cgroupfs"
19+
```
20+
`Reference 1`: [Link 1](https://kubernetes.io/docs/setup/independent/install-kubeadm/#installing-docker)
21+
`Reference 2`: [Link 2](https://kubernetes.io/docs/setup/independent/install-kubeadm/#configure-cgroup-driver-used-by-kubelet-on-master-node)
22+
23+
#### 6. You can also use a sandbox environment like https://labs.play-with-k8s.com/
24+
Keep in mind that the environment that you create will only be available for 4 hours. So just use it for learning purposes.
25+
`Reference`: [Play with K8s](https://labs.play-with-k8s.com/)
26+
27+
#### 7. Create another k8s cluster(you can use play-with-k8s for this) and use Calico as your pod network plugin. Use the following documentation for the instructions.
28+
`Reference`: [Pod Networking](https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#pod-network)
29+
30+
#### 8. You have lost the init token and discovery hash provided by the kubeadm init command and you are not able to join any nodes to your cluster. How would you retrieve them?
31+
`Reference`: [Recover Kubeadm Tokens](https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#join-nodes)
32+
33+
#### 9. You have launched a K8s cluster of version 1.8 and want to upgrade it to version 1.9. How do you achieve that?
34+
`Reference`:[Upgrade K8s Cluster](https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/#upgrading-your-control-plane)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)