March 2020
Beginner
592 pages
14h 14m
English
As indicated, we start by deploying Prometheus to Kubernetes. Let's first define the Kubernetes YAML file that we can use to do so. First, we need to define a Kubernetes Deployment that will create a ReplicaSet of Prometheus server instances, and then we will define a Kubernetes service to expose Prometheus to us, so that we can access it from within a browser tab or that Grafana can access it. Let's do it:
$ mkdir -p ~/fod/ch17/kube && cd ~/fod/ch17/kube
apiVersion: apps/v1kind: Deploymentmetadata: name: prometheus-deployment ...
Read now
Unlock full access