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

Setting up EFK with kubespray

kubespray has a configuration concerning whether or not to enable EFK. By default, it is disabled, so you need to enable it with the following steps:

  1. Open <kubespray dir>/inventory/mycluster/group_vars/k8s-cluster.yaml.

 

  1. Around line number 152 in the k8s-cluster.yml file, change the value of  efk_enabled to true:
# Monitoring apps for k8sefk_enabled: true
  1. Run the ansible-playbook command to update your Kubernetes cluster:
$ ansible-playbook -b -i inventory/mycluster/hosts.ini cluster.yml
  1. Check to see if Elasticsearch, Fluentd, and Kibana Pod's STATUS became Running or not; if you see the Pending state for more than 10 minutes, check kubectl describe pod <Pod name> to see the status. In most cases, you ...
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