mirror of https://github.com/k3s-io/k3s
94 lines
3.2 KiB
JSON
94 lines
3.2 KiB
JSON
{
|
|
"apiVersion": "v1",
|
|
"kind": "ReplicationController",
|
|
"metadata": {
|
|
"labels": {
|
|
"name": "kube-prometheus"
|
|
},
|
|
"name": "kube-prometheus"
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"selector": {
|
|
"name": "kube-prometheus"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"labels": {
|
|
"name": "kube-prometheus"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name":"kube-promdash",
|
|
"image": "prom/promdash",
|
|
"env": [
|
|
{
|
|
"name": "DATABASE_URL",
|
|
"value": "sqlite3:/promdash/file.sqlite3"
|
|
}
|
|
],
|
|
"ports": [
|
|
{
|
|
"containerPort": 3000,
|
|
"hostPort": 3000,
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"volumeMounts": [
|
|
{
|
|
"mountPath": "/promdash",
|
|
"name": "data"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"command": ["./run_prometheus.sh", "-t", "KUBERNETES_RO", "-d", "/var/prometheus/"],
|
|
"image": "jayunit100/kube-prometheus",
|
|
"name": "kube-prometheus",
|
|
"ports": [
|
|
{
|
|
"containerPort": 9090,
|
|
"hostPort": 9090,
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "KUBERNETES_RO_SERVICE_HOST",
|
|
"value": "localhost"
|
|
},
|
|
{
|
|
"name": "KUBERNETES_RO_SERVICE_PORT",
|
|
"value": "8001"
|
|
}
|
|
],
|
|
"volumeMounts": [
|
|
{
|
|
"mountPath": "/var/prometheus/",
|
|
"name": "data"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "kubectl",
|
|
"image": "gcr.io/google_containers/kubectl:v0.18.0-350-gfb3305edcf6c1a",
|
|
"args": [
|
|
"proxy", "-p", "8001", "--api-prefix=/"
|
|
]
|
|
}
|
|
],
|
|
"volumes": [
|
|
{
|
|
"hostPath": {
|
|
"path": "/mnt/promdash"
|
|
},
|
|
"name": "data"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|