fix resource limits for grafana,cadvisor
This commit is contained in:
parent
09c1094fc5
commit
dfd0f94662
|
@ -1,7 +1,7 @@
|
|||
module "cadvisor" {
|
||||
source = "../modules/container"
|
||||
name = "cadvisor"
|
||||
image = "google/cadvisor:latest"
|
||||
image = "gcr.io/cadvisor/cadvisor"
|
||||
|
||||
resource = {
|
||||
memory = 512
|
||||
|
@ -11,6 +11,7 @@ module "cadvisor" {
|
|||
restart = "unless-stopped"
|
||||
destroy_grace_seconds = 10
|
||||
must_run = true
|
||||
privileged = true
|
||||
|
||||
volumes = [
|
||||
{
|
||||
|
@ -36,6 +37,7 @@ module "cadvisor" {
|
|||
{
|
||||
host_path = "/var/run"
|
||||
container_path = "/var/run"
|
||||
read_only = true
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
@ -2,10 +2,15 @@
|
|||
module "grafana" {
|
||||
name = "grafana"
|
||||
source = "../modules/container"
|
||||
image = "grafana/grafana:latest"
|
||||
image = "grafana/grafana-oss:latest"
|
||||
|
||||
// grafana:grafana
|
||||
user = "984:982"
|
||||
// grafana
|
||||
user = "472"
|
||||
|
||||
resource = {
|
||||
memory = 512
|
||||
memory_swap = 512
|
||||
}
|
||||
|
||||
web = {
|
||||
port = 3000
|
||||
|
|
Loading…
Reference in New Issue