This fixes up a couple of typos in the walkthrough and updates it to mention config and the Prometheus Operator. It probably eventually needs to be further modified with more specific instructions about the Prometheus Operator.
953 B
Example Deployment
-
Make sure you've built the included Dockerfile with
make docker-build. The image should be tagged asdirectxman12/k8s-prometheus-adapter:latest. -
Create a secret called
cm-adapter-serving-certswith two values:serving.crtandserving.key. These are the serving certificates used by the adapter for serving HTTPS traffic. For more information on how to generate these certificates, see the auth concepts documentation in the apiserver-builder repository. -
kubectl create namespace custom-metricsto ensure that the namespace that we're installing the custom metrics adapter in exists. -
kubectl create -f manifests/, modifying the Deployment as necessary to point to your Prometheus server, and the ConfigMap to contain your desired metrics discovery configuration.