1
0
Fork 0

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: I37e11609f408fa3e3fbfafafba44dc83149b90a9
master
q3k 2020-09-12 21:44:53 +00:00
parent 242ec58a33
commit 059fdfed3b
1 changed files with 4 additions and 1 deletions

View File

@ -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" },
},
},
},
},