19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 14 ■ Configuring Logging

Figure 14-21. Replication controller definition file for Kibana

Create a service definition file kibana-service.yaml for the RC and copy the following listing to the file.

The Kibana service is exposed at port 5601.

---

apiVersion: v1

kind: Service

metadata:

labels:

k8s-app: elasticsearch-logging

kubernetes.io/cluster-service: "true"

kubernetes.io/name: Kibana

name: kibana-logging

namespace: kube-system

spec:

ports:

-

port: 5601

protocol: TCP

selector:

k8s-app: kibana-logging

326

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!