Skip to content

Commit

Permalink
feat(upgrade): add upgrade patch template for m-exporter (openebs#2439)
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Mani Tripathi <utkarsh.tripathi@mayadata.io>
utkarshmani1997 authored and Amit Kumar Das committed Mar 15, 2019
1 parent e3075f2 commit 77d0c5b
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions k8s/upgrades/0.8.1-0.8.2/cstor-pool-patch.tpl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"metadata": {
"labels": {
"openebs.io/version": "@pool_version@"
},
"annotations": {
"openebs.io/monitoring": "pool_exporter_prometheus",
"prometheus.io/path": "/metrics",
"prometheus.io/port": "9500",
"prometheus.io/scrape": "true"
}
},
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "cstor-pool",
"image": "quay.io/openebs/cstor-pool:@pool_version@"
},
{
"name": "cstor-pool-mgmt",
"image": "quay.io/openebs/cstor-pool-mgmt:@pool_version@"
},
{
"image": "quay.io/openebs/m-exporter:@pool_version@",
"name": "maya-exporter",
"args": [
"-e=pool"
],
"command": [
"maya-exporter"
],
"ports": [
{
"containerPort": 9500,
"protocol": "TCP"
}
],
"volumeMounts": [
{
"mountPath": "/dev",
"name": "device"
},
{
"mountPath": "/tmp",
"name": "tmp"
},
{
"mountPath": "/var/openebs/sparse",
"name": "sparse"
},
{
"mountPath": "/run/udev",
"name": "udev"
}
]
}
]
}
}
}
}

0 comments on commit 77d0c5b

Please sign in to comment.