From d466347daa038394ea2a44951a5d8da33e59e161 Mon Sep 17 00:00:00 2001 From: Adam Bernot Date: Thu, 31 Aug 2023 18:17:31 +0000 Subject: [PATCH] Add example VPA manifest --- examples/vpa.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 examples/vpa.yaml diff --git a/examples/vpa.yaml b/examples/vpa.yaml new file mode 100644 index 0000000000..2b050620e5 --- /dev/null +++ b/examples/vpa.yaml @@ -0,0 +1,37 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +apiVersion: autoscaling.k8s.io/v1 +kind: VerticalPodAutoscaler +metadata: + name: collector + namespace: gmp-system +spec: + targetRef: + apiVersion: apps/v1 + kind: DaemonSet + name: collector + updatePolicy: + updateMode: "Auto" + resourcePolicy: + containerPolicies: + - containerName: "prometheus" + mode: "Auto" + minAllowed: + memory: "32Mi" + maxAllowed: + memory: "4Gi" + controlledResources: + - "memory" + - containerName: "config-reloader" + mode: "Off"