Search⌘ K
AI Features

Working with the New Prometheus Configuration

Explore how to work with Prometheus configuration in Kubernetes with a focus on volume types. Understand why hostPath is not ideal for configuration injection, and discover better practices like using custom images or configMap. This lesson also covers testing configuration changes and managing stateful configurations effectively.

Testing the new configuration

Let’s see whether Prometheus with the new configuration works as expected. As described earlier, the external URL is also changed for prometheus-host-path.ymljust like prometheus. You can confirm it in the playground at the end of this lesson at line 49 ...