Skip to content

Commit 207b07d

Browse files
authored
feat: add other topics (#30)
1 parent 12a3b15 commit 207b07d

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

98-other-topics/README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Other topics
2+
3+
## Introduction
4+
5+
In this section you will get an overview of others Kubernetes useful features, in order of complexity.
6+
7+
## Namespace
8+
9+
`Namespaces` is the way to support multiple virtual clusters in Kubernetes.
10+
11+
They are intended for use in environments with many users spread across multiple teams, or projects. For clusters with a few to tens of users, you should not need to create or think about `namespaces` at all. Start using `namespaces` when you need the features they provide.
12+
13+
By default, all objects are in the `default` namespace. There is a "hidden" `namespace` where Kubernetes runs services for itself.
14+
Try:
15+
16+
```sh
17+
$ kubectl get namespace
18+
NAME STATUS AGE
19+
default Active 56d
20+
kube-public Active 56d
21+
kube-system Active 56d
22+
```
23+
24+
```sh
25+
$ kubectl get all --namespace=kube-system
26+
27+
[lot of stuff]
28+
```
29+
30+
## `kubeval`
31+
32+
It is a tool to validate your Kubernetes YAML files: https://github.com/garethr/kubeval
33+
34+
The easiest integration is with `docker run`, if you files are in the directory `kubernetes`
35+
36+
```sh
37+
docker run -it -v `pwd`/kubernetes:/kubernetes garethr/kubeval kubernetes/**/*
38+
```
39+
40+
## Helm
41+
42+
It is a package manager for Kubernetes: https://helm.sh/.
43+
It contains multiple, ready to use, Kubernetes manifest for projects, for example [mysql](https://github.com/helm/charts/tree/master/stable/mysql)
44+
45+
## Kube state metrics
46+
47+
[Kube State Metrics](https://github.com/kubernetes/kube-state-metrics) is a service you can install on your Kubernetes clusters to get metrics from its state. It's very useful for production cluster as you can measure and put alerts on the state of your applications. Like when do you have pod evictions, are your deployment fully deployed, etc.
48+
49+
## Exercises
50+
51+
Nothing to see here.
52+
53+
## Clean up
54+
55+
```sh
56+
kubectl delete statefulset,deployment,service,pod --all
57+
```

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
1. [Controllers: what, why, and how](#controllers-what,-why,-and-how)
2222
1. [Operators and CRDs: what, why, and how](#operators-and-crds-what,-why,-and-how)
2323
1. [RBAC](#rbac)
24+
1. [Other topics](#other-topics)
2425
1. [Good practices](#good-practices)
2526
1. [Links](#links)
2627

@@ -255,6 +256,10 @@ See the dedicated [README](20-operators).
255256

256257
See the dedicated [README](21-rbac).
257258

259+
## Other topics
260+
261+
See the dedicated [README](98-other-topics).
262+
258263
## Good practices
259264

260265
See the dedicated [README](99-good-practices).

0 commit comments

Comments
 (0)