forked from hswaw/hscloud
k0: add resource requests/limits to nginx, remove gitea
We just had an outage seemingly caused by N-I-C sendings tons of traffic to gitea, which in turn caused N-I-C to balloon in memory/CPU usage. I haven't debugged the cause of this traffic, but I have disabled the gitea TCP forward to Stop The Bleeding. This change reflects ad-hoc production changes. Change-Id: I37e11609f408fa3e3fbfafafba44dc83149b90a9master
parent
242ec58a33
commit
059fdfed3b
|
@ -32,7 +32,6 @@ local policies = import "../../../kube/policies.libsonnet";
|
|||
tcp: env.maps.make("tcp-services") {
|
||||
data: {
|
||||
"22": "gerrit/gerrit:22",
|
||||
"222": "gitea-prod/gitea:22",
|
||||
}
|
||||
},
|
||||
udp: env.maps.make("udp-services"),
|
||||
|
@ -225,6 +224,10 @@ local policies = import "../../../kube/policies.libsonnet";
|
|||
},
|
||||
runAsUser: 33,
|
||||
},
|
||||
resources: {
|
||||
limits: { cpu: "2", memory: "4G" },
|
||||
requests: { cpu: "1", memory: "1G" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue