The vfarcic/k8s-specs (https://github.com/vfarcic/k8s-specs) repository will continue being our source of Kubernetes definitions we'll use for our examples. We'll make sure that it is up-to-date by pulling the latest version.
1 cd k8s-specs 2 3 git pull
Given that we learned how to install a fully operational Prometheus and the rest of the tools from its chart, and that we'll continue using them, I moved it to the Gists. Those that follow are copies of those we used in the previous chapter, with the addition of environment variables PROM_ADDR and AM_ADDR, and the steps for the installation of the Prometheus Chart. Please create a cluster that meets (or exceeds) the requirements specified in the Gists that follow, unless you already have a cluster that satisfies them.
- gke-instrument.sh: GKE with 3 n1-standard-1 worker nodes, nginx Ingress, tiller, Prometheus Chart, and environment variables LB_IP, PROM_ADDR, and AM_ADDR (https://gist.github.com/675f4b3ee2c55ee718cf132e71e04c6e).
- eks-instrument.sh: EKS with 3 t2.small worker nodes, nginx Ingress, tiller, Metrics Server, Prometheus Chart, and environment variables LB_IP, PROM_ADDR, and AM_ADDR (https://gist.github.com/70a14c8f15c7ffa533ea7feb75341545).
- aks-instrument.sh: AKS with 3 Standard_B2s worker nodes, nginx Ingress, and tiller, Prometheus Chart, and environment variables LB_IP, PROM_ADDR, and AM_ADDR (https://gist.github.com/65a0d5834c9e20ebf1b99225fba0d339).
- docker-instrument.sh: Docker for Desktop with 2 CPUs, 3 GB RAM, nginx Ingress, tiller, Metrics Server, Prometheus Chart, and environment variables LB_IP, PROM_ADDR, and AM_ADDR (https://gist.github.com/1dddcae847e97219ab75f936d93451c2).
- minikube-instrument.sh: minikube with 2 CPUs, 3 GB RAM, ingress, storage-provisioner, default-storageclass, and metrics-server addons enabled, tiller, Prometheus Chart, and environment variables LB_IP, PROM_ADDR, and AM_ADDR (https://gist.github.com/779fae2ae374cf91a5929070e47bddc8).
Now we're ready to face our first simulated issue that might require debugging.