Skip to Content
Kubernetes Cookbook - Second Edition
book

Kubernetes Cookbook - Second Edition

by Hideto Saito, Hui-Chuan Chloe Lee, Ke-Jou Carol Hsu
May 2018
Intermediate to advanced
554 pages
13h 51m
English
Packt Publishing
Content preview from Kubernetes Cookbook - Second Edition

Getting ready

Since Kubernetes version 1.3, kube-dns has come with Kubernetes and is enabled by default. To check whether kube-dns is working or not, check the kube-system namespace with the following command:

$ kubectl get deploy kube-dns --namespace=kube-systemNAME       DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGEkube-dns   1         1         1            1           1d

If you are using minikube, type the following command to see the addon's status:

$ minikube addons list |grep kube-dns- kube-dns: enabled

If it shows as disabled, you need to enable it using the following command:

$ minikube addons enable kube-dns

In addition, prepare two namespaces, chap8-domain1 and chap8-domain2, to demonstrate how kube-dns assigns domain names:

$ kubectl create namespace chap8-domain1namespace ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kubernetes Cookbook

Kubernetes Cookbook

Sébastien Goasguen, Michael Hausenblas
DevOps with Kubernetes - Second Edition

DevOps with Kubernetes - Second Edition

Hideto Saito, Hui-Chuan Chloe Lee, Cheng-Yang Wu

Publisher Resources

ISBN: 9781788837606Supplemental Content