...
1package kube
2
3service: prometheus: {
4 label: name: "prometheus"
5 port: web: {
6 name: "main"
7 nodePort: 30900
8 }
9 kubernetes: metadata: annotations: "prometheus.io/scrape": "true"
10 kubernetes: spec: type: "NodePort"
11}
12
13deployment: prometheus: {
14 image: "prom/prometheus:v2.4.3"
15 args: [
16 "--config.file=/etc/prometheus/prometheus.yml",
17 "--web.external-url=https://prometheus.example.com",
18 ]
19
20 expose: port: web: 9090
21
22 volume: "config-volume": {
23 mountPath: "/etc/prometheus"
24 spec: configMap: name: "prometheus"
25 }
26
27 kubernetes: spec: selector: matchLabels: app: "prometheus"
28
29 kubernetes: spec: strategy: {
30 type: "RollingUpdate"
31 rollingUpdate: {
32 maxSurge: 0
33 maxUnavailable: 1
34 }
35 }
36 kubernetes: spec: template: metadata: annotations: "prometheus.io.scrape": "true"
37}
View as plain text