agones.dev/agones@v1.54.0/examples/schedulefleetautoscaler.yaml (about) 1 --- 2 # Copyright 2024 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:Dev] 18 # [FeatureFlag:ScheduledAutoscaler] 19 # Example of a FleetAutoscaler - this is used to scale a Fleet based on a schedule. 20 # 21 22 # 23 # For a full reference and details: https://agones.dev/site/docs/reference/fleetautoscaler/ 24 # 25 apiVersion: autoscaling.agones.dev/v1 26 kind: FleetAutoscaler 27 metadata: 28 name: schedule-fleet-autoscaler 29 spec: 30 fleetName: fleet-example 31 policy: 32 # Schedule based policy for autoscaling. 33 type: Schedule 34 schedule: 35 between: 36 # The policy becomes eligible for application starting on July 4th, 2024 at 4:04 PM PST. If not set, the policy will immediately be eligible for application. 37 start: "2024-07-04T16:04:04-07:00" 38 # The policy becomes ineligible for application on Sept 21, 2100 at 4:04 PM PST. If not set, the policy will always be eligible for application (after the start time). 39 end: "2100-09-21T16:04:04-07:00" 40 activePeriod: 41 # Timezone to be used for the startCron field. Defaults to UTC if not set. 42 timezone: "America/Los_Angeles" 43 # Start applying the policy everyday at 1:00 AM PST. If not set, the policy will always be applied in the .between window. 44 # (Only eligible starting on Feb 20, 2100 at 4:04 PM). 45 startCron: "0 1 * * 0" 46 # Only apply the policy for 5 hours. If not set, the duration will be defaulted to always/indefinite. 47 duration: "5h" 48 # Policy to be applied during the activePeriod. Required. 49 policy: 50 type: Buffer 51 buffer: 52 bufferSize: 50 53 minReplicas: 100 54 maxReplicas: 2000 55 # The autoscaling sync strategy, this will determine how frequent the schedule is evaluated. 56 sync: 57 # type of the sync. for now, only FixedInterval is available 58 type: FixedInterval 59 # parameters of the fixedInterval sync 60 fixedInterval: 61 # the time in seconds between each auto scaling 62 seconds: 30