agones.dev/agones@v1.53.0/examples/listfleetautoscaler.yaml (about) 1 --- 2 # Copyright 2023 Google LLC All Rights Reserved. 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 # 17 # [Stage:Beta] 18 # [FeatureFlag:CountsAndLists] 19 # Example of a FleetAutoscaler - this is used to scale a Fleet automatically depending on the 20 # available capacity of a List across the fleet. 21 # 22 23 # 24 # For a full reference and details: https://agones.dev/site/docs/reference/fleetautoscaler/ 25 # 26 apiVersion: autoscaling.agones.dev/v1 27 kind: FleetAutoscaler 28 metadata: 29 name: fleet-autoscaler-list 30 spec: 31 fleetName: fleet-example 32 policy: 33 type: List # List based autoscaling. 34 list: 35 # Key is the name of the List. Required field. 36 key: players 37 # BufferSize is the size of a buffer based on the List capacity that is available over the current 38 # aggregate List length in the Fleet (available capacity). 39 # It can be specified either as an absolute value (i.e. 5) or percentage format (i.e. 5%). 40 # Must be bigger than 0. Required field. 41 bufferSize: 5 42 # MinCapacity is the minimum aggregate List total capacity across the fleet. 43 # If BufferSize is specified as a percentage, MinCapacity is required must be greater than 0. 44 # If non zero, MinCapacity must be smaller than MaxCapacity and must be greater than or equal to BufferSize. 45 minCapacity: 10 46 # MaxCapacity is the maximum aggregate List total capacity across the fleet. 47 # MaxCapacity must be greater than or equal to both MinCapacity and BufferSize. Required field. 48 maxCapacity: 100