| label: name: "prometheus" |
| kubernetes: metadata: annotations: "prometheus.io/scrape": "true" |
| kubernetes: spec: type: "NodePort" |
| deployment: prometheus: { |
| image: "prom/prometheus:v2.4.3" |
| "--config.file=/etc/prometheus/prometheus.yml", |
| "--web.external-url=https://prometheus.example.com", |
| volume: "config-volume": { |
| mountPath: "/etc/prometheus" |
| spec: configMap: name: "prometheus" |
| kubernetes: spec: selector: matchLabels: app: "prometheus" |
| kubernetes: spec: strategy: { |
| kubernetes: spec: template: metadata: annotations: "prometheus.io.scrape": "true" |