mirror of
https://github.com/nshttpd/mikrotik-exporter.git
synced 2025-01-04 18:07:50 +01:00
129e34290f
* of course we need badges * kubernetes single device config example * fixed deployment json
75 lines
1.7 KiB
JSON
75 lines
1.7 KiB
JSON
{
|
|
"apiVersion": "apps/v1beta1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"name": "mikrotik-exporter",
|
|
"namespace": "prometheus"
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 5,
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "mikrotik-exporter"
|
|
},
|
|
"annotations": {
|
|
"prometheus.io/scrape": "true",
|
|
"prometheus.io/port": "9090"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "mikrotik-exporter",
|
|
"image": "nshttpd/mikrotik-exporter:044419a",
|
|
"env": [
|
|
{
|
|
"name": "DEVICE",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"name": "mikrotik-exporter",
|
|
"key": "device"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "ADDRESS",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"name": "mikrotik-exporter",
|
|
"key": "address"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "USER",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"name": "mikrotik-exporter",
|
|
"key": "user"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "PASSWORD",
|
|
"valueFrom": {
|
|
"secretKeyRef": {
|
|
"name" : "mikrotik-exporter",
|
|
"key" : "pasword"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|