You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kubernetes-hands-on/98-other-topics
antoinegauvain a5b4383297
Various fixes (#57)
* fix: fix internal service filename in 08-service section

* fix: typo

* fix: fix markdownlint in CI

* fix: typo

* fix: typo

* fix: `environment variables`, not `environmental`

* fix: typo & missing punctuation

* fix: `much` not `many`

* fix: `lets` not `let's`

* fix: typo

* fix: typo

* fix: phrasing

* fix: typo

* fix: typo

* fix: mysql operator manifest api version

got this error while trying to run it as is:

error: unable to recognize "20-operators/01-mysql-operator.yml": no matches for
kind "Deployment" in version "apps/v1beta1"

* fix: spelling
4 years ago
..
README.md Various fixes (#57) 4 years ago

README.md

Other topics

Introduction

In this section you will get an overview of others Kubernetes useful features, in order of complexity.

Namespace

Namespaces is the way to support multiple virtual clusters in Kubernetes.

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.

By default, all objects are in the default namespace. There is a "hidden" namespace where Kubernetes runs services for itself. Try:

$ kubectl get namespace
NAME          STATUS    AGE
default       Active    56d
kube-public   Active    56d
kube-system   Active    56d
$ kubectl get all --namespace=kube-system
[lot of stuff]

kubeval

It is a tool to validate your Kubernetes YAML files: https://github.com/garethr/kubeval

The easiest integration is with docker run, if you files are in the directory kubernetes

docker run -it -v `pwd`/kubernetes:/kubernetes garethr/kubeval kubernetes/**/*

Helm

It is a package manager for Kubernetes: https://helm.sh/. It contains multiple, ready to use, Kubernetes manifest for projects, for example mysql

Kube state metrics

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.

Clean up

kubectl delete statefulset,deployment,service,pod --all