agones.dev/agones@v1.54.0/examples/fleetautoscaler.yaml (about) 1 --- 2 # Copyright 2018 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 # Full example of a FleetAutoscaler - this is used to scale a Fleet 18 # automatically depending on load 19 # 20 21 # 22 # For a full reference and details: https://agones.dev/site/docs/reference/fleetautoscaler/ 23 # 24 apiVersion: autoscaling.agones.dev/v1 25 kind: FleetAutoscaler 26 metadata: 27 name: fleet-autoscaler-example 28 spec: 29 # The name of the fleet to attach to and control. Must be an existing Fleet in the same namespace 30 # as this FleetAutoscaler 31 fleetName: fleet-example 32 # The autoscaling policy 33 policy: 34 # type of the policy. Buffer or Webhook types are available 35 type: Buffer 36 # parameters of the buffer policy 37 buffer: 38 # Size of a buffer of "ready" and "reserved" game server instances. 39 # The FleetAutoscaler will scale the fleet up and down trying to maintain this buffer, 40 # as instances are being allocated or terminated. 41 # Note that "reserved" game servers could not be scaled down. 42 # It can be specified either in absolute (i.e. 5) or percentage format (i.e. 5%) 43 bufferSize: 5 44 # minimum fleet size to be set by this FleetAutoscaler. 45 # if not specified, the actual minimum fleet size will be bufferSize 46 minReplicas: 10 47 # maximum fleet size that can be set by this FleetAutoscaler 48 # required 49 maxReplicas: 20 50 # The autoscaling sync strategy 51 sync: 52 # type of the sync. for now, only FixedInterval is available 53 type: FixedInterval 54 # parameters of the fixedInterval sync 55 fixedInterval: 56 # the time in seconds between each auto scaling 57 seconds: 30