mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-13 02:12:00 +01:00
03b54bd52b
Signed-off-by: magic_rb <magic_rb@redalder.org>
36 lines
761 B
Nix
36 lines
761 B
Nix
{
|
|
apiVersion = "autoscaling/v2";
|
|
kind = "HorizontalPodAutoscaler";
|
|
metadata = {
|
|
labels = {
|
|
app = "istiod";
|
|
"install.operator.istio.io/owning-resource" = "unknown";
|
|
"istio.io/rev" = "default";
|
|
"operator.istio.io/component" = "Pilot";
|
|
release = "istio-istiod";
|
|
};
|
|
name = "istiod";
|
|
namespace = "istio-system";
|
|
};
|
|
spec = {
|
|
maxReplicas = 5;
|
|
metrics = [
|
|
{
|
|
resource = {
|
|
name = "cpu";
|
|
target = {
|
|
averageUtilization = 80;
|
|
type = "Utilization";
|
|
};
|
|
};
|
|
type = "Resource";
|
|
}
|
|
];
|
|
minReplicas = 1;
|
|
scaleTargetRef = {
|
|
apiVersion = "apps/v1";
|
|
kind = "Deployment";
|
|
name = "istiod";
|
|
};
|
|
};
|
|
}
|