Skip to content

Commit

Permalink
Merge pull request #561 from GoogleCloudPlatform/bernot-dev/vpa
Browse files Browse the repository at this point in the history
Add example VPA manifest
  • Loading branch information
bernot-dev authored Sep 1, 2023
2 parents 0693b1f + d466347 commit fd35387
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions examples/vpa.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit fd35387

Please sign in to comment.