From ada2c4d4be56ee6ac7fa635143554fdaad62fa60 Mon Sep 17 00:00:00 2001
From: Ivy Gooch Packages:
Package v1 is the v1 version of the API.Priority
-Priority
agones.dev/v1
+allocation.agones.dev/v1
-
Fleet is the data structure for a Fleet resource
+GameServerAllocation is the data structure for allocating against a set of
+GameServers, defined selectors
selectors
-agones.dev/v1
+allocation.agones.dev/v1
|
@@ -3875,7 +3872,7 @@ Fleet |
+GameServerAllocation |
||||||||||||||||
@@ -3895,8 +3892,8 @@ Fleet
spec
-
-FleetSpec
+
+GameServerAllocationSpec
Fleet
status
-
-FleetStatus
+
+GameServerAllocationStatus
|
-
GameServer is the data structure for a GameServer resource.
-It is worth noting that while there is a GameServerStatus
Status entry for the GameServer
, it is not
-defined as a subresource - unlike Fleet
and other Agones resources.
-This is so that we can retain the ability to change multiple aspects of a GameServer
in a single atomic operation,
-which is particularly useful for operations such as allocation.
+
CounterAction is an optional action that can be performed on a Counter at allocation. +Action: “Increment” or “Decrement” the Counter’s Count (optional). Must also define the Amount. +Amount: The amount to increment or decrement the Count (optional). Must be a positive integer. +Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max int64.
-apiVersion
-string |
-
-
-agones.dev/v1
-
+action
+
+string
+
|
-
-kind
-string
|
-GameServer |
-metadata
+amount
-
-Kubernetes meta/v1.ObjectMeta
-
+int64
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
|
-spec
+capacity
-
-GameServerSpec
-
+int64
|
- - + |
+
+(Appears on: +GameServerSelector) +
++
CounterSelector is the filter options for a GameServer based on the count and/or available capacity. +0 for MaxCount or MaxAvailable means unlimited maximum. Default for all fields: 0
+Field | +Description | +
---|---|
-container
+minCount
-string
+int64
|
- Container specifies which Pod container is the game server. Only required if there is more than one -container defined |
-ports
+maxCount
-
-[]GameServerPort
-
+int64
|
- Ports are the array of ports that can be exposed via the game server |
-health
+minAvailable
-
-Health
-
+int64
|
- Health configures health checking |
-scheduling
+maxAvailable
-agones.dev/agones/pkg/apis.SchedulingStrategy
+int64
|
- Scheduling strategy. Defaults to “Packed” |
+(Appears on: +GameServerAllocation) +
++
GameServerAllocationSpec is the spec for a GameServerAllocation
+ +Field | +Description | +
---|---|
-sdkServer
+multiClusterSetting
-
-SdkServer
+
+MultiClusterSetting
|
- SdkServer specifies parameters for the Agones SDK Server sidecar container +MultiClusterPolicySelector if specified, multi-cluster policies are applied. +Otherwise, allocation will happen locally. |
-template
+required
-
-Kubernetes core/v1.PodTemplateSpec
-
+
+GameServerSelector
+
|
- Template describes the Pod that will be created for the GameServer +Deprecated: use field Selectors instead. If Selectors is set, this field is ignored. +Required is the GameServer selector from which to choose GameServers from. +Defaults to all GameServers. |
-players
+preferred
-
-PlayersSpec
+
+[]GameServerSelector
|
-(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. +Deprecated: use field Selectors instead. If Selectors is set, this field is ignored.
+Preferred is an ordered list of preferred GameServer selectors
+that are optional to be fulfilled, but will be searched before the |
-counters
+priorities
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
+
+[]Priority
|
(Optional)
- (Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. +(Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most +important for sorting. The allocator will use the first priority for sorting GameServers by +available Capacity in the Selector set and acts as a tie-breaker after sorting the game servers +by State and Strategy. Impacts which GameServer is checked first. |
-lists
+selectors
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
+
+[]GameServerSelector
|
+ Ordered list of GameServer label selectors. +If the first selector is not matched, the selection attempts the second selector, and so on. +This is useful for things like smoke testing of new game servers. +Note: This field can only be set if neither Required or Preferred is set. |
-eviction
+scheduling
-
-Eviction
+agones.dev/agones/pkg/apis.SchedulingStrategy
+
+ |
+
+ Scheduling strategy. Defaults to “Packed”. + |
+
+metadata
+
+
+MetaPatch
|
-(Optional)
- Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. +MetaPatch is optional custom metadata that is added to the game server at allocation +You can use this to tell the server necessary session data |
counters
+
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterAction
+
+
+(Alpha, CountsAndLists feature flag) Counters and Lists provide a set of actions to perform +on Counters and Lists during allocation.
status
+lists
-
-GameServerStatus
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.ListAction
string
alias)+(Appears on: +GameServerAllocationStatus) +
++
GameServerAllocationState is the Allocation state
+ +-
GameServerSet is the data structure for a set of GameServers. -This matches philosophically with the relationship between -Deployments and ReplicaSets
+(Appears on: +GameServerAllocation) + ++
GameServerAllocationStatus is the status for an GameServerAllocation resource
-apiVersion
-string |
+
-
-agones.dev/v1
-
+GameServerState is the current state of an GameServerAllocation, e.g. Allocated, or UnAllocated |
||||||||||||
-kind
+gameServerName
+
string
+
+ |
+- | GameServerSet |
|||||||||||
-metadata
+ports
-
-Kubernetes meta/v1.ObjectMeta
+
+[]GameServerStatusPort
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
|
||||||||||||
-spec
+address
-
-GameServerSetSpec
-
+string
|
- - -
GameServerSelector +++(Appears on: +GameServerAllocationSpec) + ++ GameServerSelector contains all the filter options for selecting +a GameServer for allocation. + +
| ||||||||||||
+counters
+
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterSelector
+
+
+ |
+
+(Optional)
+ (Alpha, CountsAndLists feature flag) Counters provides filters on minimum and maximum values +for a Counter’s count and available capacity when retrieving a GameServer through Allocation. +Defaults to no limits. |
||||||||||||
-status
+lists
-
-GameServerSetStatus
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.ListSelector
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) Lists provides filters on minimum and maximum values +for List capacity, and for the existence of a value in a List, when retrieving a GameServer +through Allocation. Defaults to no limits. |
(Appears on: -FleetStatus, -GameServerSetStatus) +GameServerAllocationSpec)
-
AggregatedCounterStatus stores total Counter tracking values
+ListAction is an optional action that can be performed on a List at allocation. +AddValues: Append values to a List’s Values array (optional). Any duplicate values will be ignored. +Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max 1000.
-count
+addValues
-int64
+[]string
|
@@ -4378,15 +4552,17 @@ AggregatedCounterStatus |
(Appears on: -FleetStatus, -GameServerSetStatus) +GameServerSelector)
-
AggregatedListStatus stores total List tracking values
+ListSelector is the filter options for a GameServer based on List available capacity and/or the +existence of a value in a List. +0 for MaxAvailable means unlimited maximum. Default for integer fields: 0 +“” for ContainsValue means ignore field. Default for string field: “”
-count
+containsValue
+
+string
+
+ |
++ | +
+minAvailable
int64
@@ -4408,7 +4594,7 @@ AggregatedListStatus | |
-capacity
+maxAvailable
int64
@@ -4418,15 +4604,14 @@ AggregatedListStatus |
(Appears on: -FleetStatus, -GameServerSetStatus) +GameServerAllocationSpec)
-
AggregatedPlayerStatus stores total player tracking values
+MetaPatch is the metadata used to patch the GameServer metadata on allocation
-count
+labels
-int64
+map[string]string
|
@@ -4448,9 +4633,9 @@ AggregatedPlayerStatus |
-capacity
+annotations
-int64
+map[string]string
|
@@ -4458,17 +4643,14 @@ AggregatedPlayerStatus |
(Appears on: -FleetSpec, -GameServerSetSpec) +GameServerAllocationSpec)
-
AllocationOverflow specifies what labels and/or annotations to apply on Allocated GameServers
-if the desired number of the underlying GameServerSet
drops below the number of Allocated GameServers
-attached to it.
MultiClusterSetting specifies settings for multi-cluster allocation.
-labels
+enabled
-map[string]string
+bool
|
-(Optional)
- Labels to be applied to the |
-annotations
+policySelector
-map[string]string
+
+Kubernetes meta/v1.LabelSelector
+
|
-(Optional)
- Annotations to be applied to the |
(Appears on: -GameServerSpec, -GameServerStatus) +GameServerSelector)
-
CounterStatus stores the current counter values
+PlayerSelector is the filter options for a GameServer based on player counts
-count
+minAvailable
int64
@@ -4534,7 +4713,7 @@ CounterStatus |
-capacity
+maxAvailable
int64
@@ -4544,15 +4723,19 @@ CounterStatus |
-(Appears on: -GameServerSpec, -GameServerStatus) +
Package v1 is the v1 version of the API.
+Resource Types: + +-
Eviction specifies the eviction tolerance of the GameServer
+FleetAutoscaler is the data structure for a FleetAutoscaler resource
-safe
-
-
-EvictionSafe
-
-
- |
+
- Game server supports termination via SIGTERM: -- Always: Allow eviction for both Cluster Autoscaler and node drain for upgrades -- OnUpgrade: Allow eviction for upgrades alone -- Never (default): Pod should run to completion +
+autoscaling.agones.dev/v1
+
|
string
alias)-(Appears on: -Eviction) -
--
EvictionSafe specified whether the game server supports termination via SIGTERM
- --(Appears on: -Fleet) -
--
FleetSpec is the spec for a Fleet
- -Field | -Description | +
+kind
+string
+ |
+FleetAutoscaler |
---|---|---|---|
-replicas
+metadata
-int32
+
+Kubernetes meta/v1.ObjectMeta
+
|
- Replicas are the number of GameServers that should be in this set. Defaults to 0. +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
||
-allocationOverflow
+spec
-
-AllocationOverflow
+
+FleetAutoscalerSpec
|
-(Optional)
- [Stage: Alpha]
-[FeatureFlag:FleetAllocationOverflow]
-Labels and/or Annotations to apply to overflowing GameServers when the number of Allocated GameServers is more
-than the desired replicas on the underlying |
-
-strategy
+fleetName
-
-Kubernetes apps/v1.DeploymentStrategy
-
+string
|
- Deployment strategy |
-scheduling
+policy
-agones.dev/agones/pkg/apis.SchedulingStrategy
+
+FleetAutoscalerPolicy
+
|
- Scheduling strategy. Defaults to “Packed”. +Autoscaling policy |
-priorities
+sync
-
-[]Priority
+
+FleetAutoscalerSync
|
(Optional)
- (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most -important for sorting. The Fleetautoscaler will use the first priority for sorting GameServers -by total Capacity in the Fleet and acts as a tie-breaker after sorting the game servers by -State and Strategy. Impacts scale down logic. +[Stage:Beta] +[FeatureFlag:CustomFasSyncInterval] +Sync defines when FleetAutoscalers runs autoscaling + |
+
template
+status
-
-GameServerTemplateSpec
+
+FleetAutoscalerStatus
Template the GameServer template to apply for this Fleet
(Appears on: -Fleet, -FleetAutoscaleRequest) +FleetAutoscalerPolicy)
-
FleetStatus is the status of a Fleet
+BufferPolicy controls the desired behavior of the buffer policy.
-replicas
+maxReplicas
int32
|
- Replicas the total number of current GameServer replicas +MaxReplicas is the maximum amount of replicas that the fleet may have. +It must be bigger than both MinReplicas and BufferSize |
-readyReplicas
+minReplicas
int32
|
- ReadyReplicas are the number of Ready GameServer replicas +MinReplicas is the minimum amount of replicas that the fleet must have +If zero, it is ignored. +If non zero, it must be smaller than MaxReplicas and bigger than BufferSize |
-reservedReplicas
+bufferSize
-int32
+k8s.io/apimachinery/pkg/util/intstr.IntOrString
|
- ReservedReplicas are the total number of Reserved GameServer replicas in this fleet. -Reserved instances won’t be deleted on scale down, but won’t cause an autoscaler to scale up. +BufferSize defines how many replicas the autoscaler tries to have ready all the time +Value can be an absolute number (ex: 5) or a percentage of desired gs instances (ex: 15%) +Absolute number is calculated from percentage by rounding up. +Example: when this is set to 20%, the autoscaler will make sure that 20% +of the fleet’s game server replicas are ready. When this is set to 20, +the autoscaler will make sure that there are 20 available game servers +Must be bigger than 0 +Note: by “ready” we understand in this case “non-allocated”; this is done to ensure robustness +and computation stability in different edge case (fleet just created, not enough +capacity in the cluster etc) |
+(Appears on: +FleetAutoscalerPolicy) +
++
CounterPolicy controls the desired behavior of the Counter autoscaler policy.
+ +Field | +Description | +
---|---|
-allocatedReplicas
+key
-int32
+string
|
- AllocatedReplicas are the number of Allocated GameServer replicas +Key is the name of the Counter. Required field. |
-players
+maxCapacity
-
-AggregatedPlayerStatus
-
+int64
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] -Players are the current total player capacity and count for this Fleet +MaxCapacity is the maximum aggregate Counter total capacity across the fleet. +MaxCapacity must be bigger than both MinCapacity and BufferSize. Required field. |
-counters
+minCapacity
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedCounterStatus
-
+int64
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Counters provides aggregated Counter capacity and Counter -count for this Fleet. +MinCapacity is the minimum aggregate Counter total capacity across the fleet. +If zero, MinCapacity is ignored. +If non zero, MinCapacity must be smaller than MaxCapacity and bigger than BufferSize. |
-lists
+bufferSize
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedListStatus
-
+k8s.io/apimachinery/pkg/util/intstr.IntOrString
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Lists provides aggregated List capacityv and List values -for this Fleet. +BufferSize is the size of a buffer of counted items that are available in the Fleet (available +capacity). Value can be an absolute number (ex: 5) or a percentage of desired gs instances +(ex: 5%). An absolute number is calculated from percentage by rounding up. +Must be bigger than 0. Required field. |
(Appears on: -GameServerSpec) +FleetAutoscalerSync)
-
GameServerPort defines a set of Ports that -are to be exposed via the GameServer
+FixedIntervalSync controls the desired behavior of the fixed interval based sync.
-name
+seconds
-string
+int32
|
- Name is the descriptive name of the port +Seconds defines how often we run fleet autoscaling in seconds |
+(Appears on: +FleetAutoscaleReview) +
++
FleetAutoscaleRequest defines the request to webhook autoscaler endpoint
+ +
-portPolicy
-
-
-PortPolicy
-
-
- |
-
- PortPolicy defines the policy for how the HostPort is populated.
-Dynamic port will allocate a HostPort within the selected MIN_PORT and MAX_PORT range passed to the controller
-at installation time.
-When |
+Field | +Description |
---|---|---|---|
-container
+uid
-string
+k8s.io/apimachinery/pkg/types.UID
|
-(Optional)
- Container is the name of the container on which to open the port. Defaults to the game server container. +UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are +otherwise identical (parallel requests, requests when earlier requests did not modify etc) +The UID is meant to track the round trip (request/response) between the Autoscaler and the WebHook, not the user request. +It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. |
||
-containerPort
+name
-int32
+string
|
- ContainerPort is the port that is being opened on the specified container’s process +Name is the name of the Fleet being scaled |
||
-hostPort
+namespace
-int32
+string
|
- HostPort the port exposed on the host for clients to connect to +Namespace is the namespace associated with the request (if any). |
||
-protocol
+status
-
-Kubernetes core/v1.Protocol
+
+FleetStatus
|
- Protocol is the network protocol being used. Defaults to UDP. TCP and TCPUDP are other options. +The Fleet’s status values |
(Appears on: -GameServerSet) +FleetAutoscaleReview)
-
GameServerSetSpec the specification for GameServerSet
+FleetAutoscaleResponse defines the response of webhook autoscaler endpoint
-replicas
-
-int32
-
- |
-
- Replicas are the number of GameServers that should be in this set - |
-
-allocationOverflow
+uid
-
-AllocationOverflow
-
+k8s.io/apimachinery/pkg/types.UID
|
-(Optional)
- [Stage: Alpha]
-[FeatureFlag:FleetAllocationOverflow]
-Labels and Annotations to apply to GameServers when the number of Allocated GameServers drops below
-the desired replicas on the underlying UID is an identifier for the individual request/response. +This should be copied over from the corresponding FleetAutoscaleRequest. |
-scheduling
+scale
-agones.dev/agones/pkg/apis.SchedulingStrategy
+bool
|
- Scheduling strategy. Defaults to “Packed”. +Set to false if no scaling should occur to the Fleet |
-template
+replicas
-
-GameServerTemplateSpec
-
+int32
|
- Template the GameServer template to apply for this GameServerSet +The targeted replica count |
-(Appears on: -GameServerSet) -
--
GameServerSetStatus is the status of a GameServerSet
+FleetAutoscaleReview is passed to the webhook with a populated Request value, +and then returned with a populated Response.
-replicas
+request
-int32
+
+FleetAutoscaleRequest
+
|
- Replicas is the total number of current GameServer replicas |
-readyReplicas
+response
-int32
+
+FleetAutoscaleResponse
+
|
- ReadyReplicas is the number of Ready GameServer replicas |
+(Appears on: +FleetAutoscalerSpec) +
++
FleetAutoscalerPolicy describes how to scale a fleet
+ +
-reservedReplicas
-
-int32
-
- |
-
- ReservedReplicas is the number of Reserved GameServer replicas - |
+Field | +Description |
---|---|---|---|
-allocatedReplicas
+type
-int32
+
+FleetAutoscalerPolicyType
+
|
- AllocatedReplicas is the number of Allocated GameServer replicas +Type of autoscaling policy. |
||
-shutdownReplicas
+buffer
-int32
+
+BufferPolicy
+
|
- ShutdownReplicas is the number of Shutdown GameServers replicas +(Optional) +Buffer policy config params. Present only if FleetAutoscalerPolicyType = Buffer. |
||
-players
+webhook
-
-AggregatedPlayerStatus
+
+WebhookPolicy
|
(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] -Players is the current total player capacity and count for this GameServerSet +Webhook policy config params. Present only if FleetAutoscalerPolicyType = Webhook. |
||
-counters
+counter
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedCounterStatus
+
+CounterPolicy
|
(Optional)
- (Alpha, CountsAndLists feature flag) Counters provides aggregated Counter capacity and Counter -count for this GameServerSet. +[Stage:Alpha] +[FeatureFlag:CountsAndLists] +Counter policy config params. Present only if FleetAutoscalerPolicyType = Counter. |
||
-lists
+list
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedListStatus
+
+ListPolicy
|
(Optional)
- (Alpha, CountsAndLists feature flag) Lists provides aggregated List capacity and List values -for this GameServerSet. +[Stage:Alpha] +[FeatureFlag:CountsAndLists] +List policy config params. Present only if FleetAutoscalerPolicyType = List. |
string
alias)+(Appears on: +FleetAutoscalerPolicy) +
++
FleetAutoscalerPolicyType is the policy for autoscaling +for a given Fleet
+ +(Appears on: -GameServer, -GameServerTemplateSpec) +FleetAutoscaler)
-
GameServerSpec is the spec for a GameServer resource
+FleetAutoscalerSpec is the spec for a Fleet Scaler
-container
+fleetName
string
|
- Container specifies which Pod container is the game server. Only required if there is more than one -container defined |
-ports
+policy
-
-[]GameServerPort
+
+FleetAutoscalerPolicy
|
- Ports are the array of ports that can be exposed via the game server +Autoscaling policy |
-health
+sync
-
-Health
+
+FleetAutoscalerSync
|
- Health configures health checking +(Optional) +[Stage:Beta] +[FeatureFlag:CustomFasSyncInterval] +Sync defines when FleetAutoscalers runs autoscaling |
+(Appears on: +FleetAutoscaler) +
++
FleetAutoscalerStatus defines the current status of a FleetAutoscaler
+ +Field | +Description | +
---|---|
-scheduling
+currentReplicas
-agones.dev/agones/pkg/apis.SchedulingStrategy
+int32
|
- Scheduling strategy. Defaults to “Packed” +CurrentReplicas is the current number of gameserver replicas +of the fleet managed by this autoscaler, as last seen by the autoscaler |
-sdkServer
+desiredReplicas
-
-SdkServer
-
+int32
|
- SdkServer specifies parameters for the Agones SDK Server sidecar container +DesiredReplicas is the desired number of gameserver replicas +of the fleet managed by this autoscaler, as last calculated by the autoscaler |
-template
+lastScaleTime
-
-Kubernetes core/v1.PodTemplateSpec
+
+Kubernetes meta/v1.Time
|
- Template describes the Pod that will be created for the GameServer +(Optional) +lastScaleTime is the last time the FleetAutoscaler scaled the attached fleet, |
-players
+ableToScale
-
-PlayersSpec
-
+bool
|
-(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. +AbleToScale indicates that we can access the target fleet |
-counters
+scalingLimited
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
-
+bool
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. +ScalingLimited indicates that the calculated scale would be above or below the range +defined by MinReplicas and MaxReplicas, and has thus been capped. |
+(Appears on: +FleetAutoscalerSpec) +
++
FleetAutoscalerSync describes when to sync a fleet
+ +Field | +Description | +
---|---|
-lists
+type
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
+
+FleetAutoscalerSyncType
|
+ Type of autoscaling sync. |
-eviction
+fixedInterval
-
-Eviction
+
+FixedIntervalSync
|
(Optional)
- Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. +FixedInterval config params. Present only if FleetAutoscalerSyncType = FixedInterval. |
string
alias)(Appears on: -GameServerSelector, -GameServerStatus) +FleetAutoscalerSync)
-
GameServerState is the state for the GameServer
+FleetAutoscalerSyncType is the sync strategy for a given Fleet
-(Appears on: -GameServer) +FleetAutoscalerPolicy)
-
GameServerStatus is the status for a GameServer resource
+ListPolicy controls the desired behavior of the List autoscaler policy.
-state
+key
-
-GameServerState
-
+string
|
- GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc +Key is the name of the List. Required field. |
-ports
+maxCapacity
-
-[]GameServerStatusPort
-
+int64
|
+ MaxCapacity is the maximum aggregate List total capacity across the fleet. +MaxCapacity must be bigger than both MinCapacity and BufferSize. Required field. |
-address
+minCapacity
-string
+int64
|
+ MinCapacity is the minimum aggregate List total capacity across the fleet. +If zero, it is ignored. +If non zero, it must be smaller than MaxCapacity and bigger than BufferSize. |
-nodeName
+bufferSize
-string
+k8s.io/apimachinery/pkg/util/intstr.IntOrString
|
+ BufferSize is the size of a buffer based on the List capacity that is available over the +current aggregate List length in the Fleet (available capacity). It can be specified either +as an absolute value (i.e. 5) or percentage format (i.e. 5%). +Must be bigger than 0. Required field. |
+(Appears on: +FleetAutoscalerPolicy) +
++
WebhookPolicy controls the desired behavior of the webhook policy. +It contains the description of the webhook autoscaler service +used to form url which is accessible inside the cluster
+ +
-reservedUntil
-
-
-Kubernetes meta/v1.Time
-
-
- |
-- | +Field | +Description |
---|---|---|---|
-players
+url
-
-PlayerStatus
-
+string
|
(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] +
The Please note that using The scheme must be “https”; the URL must begin with “https://”. +A path is optional, and if present may be any string permissible in +a URL. You may use the path to pass an arbitrary string to the +webhook, for example, a cluster identifier. +Attempting to use a user or basic auth e.g. “user:password@” is not +allowed. Fragments (“#…”) and query parameters (“?…”) are not +allowed, either. |
||
-counters
+service
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
+
+Kubernetes admissionregistration/v1.ServiceReference
|
(Optional)
- (Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. +
If the webhook is running within the cluster, then you should use |
||
-lists
+caBundle
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
-
+[]byte
|
(Optional) - | -||
-eviction
-
-
-Eviction
-
-
- |
-
-(Optional)
- Eviction specifies the eviction tolerance of the GameServer. +
|
-(Appears on: -GameServerAllocationStatus, -GameServerStatus) +
Package v1 is the v1 version of the API.
+Resource Types: + +-
GameServerStatusPort shows the port that was allocated to a -GameServer.
+GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API
-name
-
-string
-
- |
+
+
+multicluster.agones.dev/v1
+
|
|
-port
-
-int32
-
- |
-
+kind
+string
|
+GameServerAllocationPolicy |
-(Appears on: -FleetSpec, -GameServerSetSpec) -
--
GameServerTemplateSpec is a template for GameServers
- -Field | -Description | -||||||||
---|---|---|---|---|---|---|---|---|---|
metadata
@@ -5455,8 +5671,8 @@ GameServerTemplateSpec
spec
-
-GameServerSpec
+
+GameServerAllocationPolicySpec
|
+(Appears on: +GameServerAllocationPolicySpec) +
++
ClusterConnectionInfo defines the connection information for a cluster
+ +
-sdkServer
-
-
-SdkServer
-
-
- |
-
- SdkServer specifies parameters for the Agones SDK Server sidecar container - |
+Field | +Description |
---|---|---|---|
-template
+clusterName
-
-Kubernetes core/v1.PodTemplateSpec
-
+string
|
- Template describes the Pod that will be created for the GameServer +Optional: the name of the targeted cluster |
||
-players
+allocationEndpoints
-
-PlayersSpec
-
+[]string
|
-(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. +The endpoints for the allocator service in the targeted cluster. +If the AllocationEndpoints is not set, the allocation happens on local cluster. +If there are multiple endpoints any of the endpoints that can handle allocation request should suffice |
||
-counters
+secretName
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
-
+string
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. +The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster |
||
-lists
+namespace
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
-
+string
|
+ The cluster namespace from which to allocate gameservers |
||
-eviction
+serverCa
-
-Eviction
-
+[]byte
|
-(Optional)
- Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. - |
-
The PEM encoded server CA, used by the allocator client to authenticate the remote server.
--(Appears on: -GameServerSpec) -
--
Health configures health checking on the GameServer
+ConnectionInfoIterator an iterator on ClusterConnectionInfo
-disabled
+currPriority
-bool
+int
|
- Disabled is whether health checking is disabled or not +currPriority Current priority index from the orderedPriorities |
-periodSeconds
+orderedPriorities
-int32
+[]int32
|
- PeriodSeconds is the number of seconds each health ping has to occur in +orderedPriorities list of ordered priorities |
-failureThreshold
+priorityToCluster
-int32
+map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
|
- FailureThreshold how many failures in a row constitutes unhealthy +priorityToCluster Map of priority to cluster-policies map |
-initialDelaySeconds
+clusterBlackList
-int32
+map[string]bool
|
- InitialDelaySeconds initial delay before checking health +clusterBlackList the cluster blacklist for the clusters that has already returned |
(Appears on: -GameServerSpec, -GameServerStatus) +GameServerAllocationPolicy)
-
ListStatus stores the current list values
+GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
-capacity
+priority
-int64
+int32
|
@@ -5691,58 +5881,21 @@ ListStatus |
-values
+weight
-[]string
+int
|
-(Appears on: -GameServerStatus) -
--
PlayerStatus stores the current player capacity values
- -Field | -Description | -
---|---|
-count
+connectionInfo
-int64
-
- |
-- | -
-capacity
-
-int64
-
- |
-- | -
-ids
-
-[]string
+
+ClusterConnectionInfo
+
|
@@ -5750,14 +5903,23 @@ PlayerStatus |
-(Appears on: -GameServerSpec) +
Package v1 is the v1 version of the API.
+Resource Types: +-
PlayersSpec tracks the initial player capacity
+Fleet is the data structure for a Fleet resource
-initialCapacity
+apiVersion
+string |
+
+
+agones.dev/v1
+
+ |
+
+kind
+string
+ |
+Fleet |
+
+metadata
-int64
+
+Kubernetes meta/v1.ObjectMeta
+
|
+Refer to the Kubernetes API documentation for the fields of the
+metadata field.
|
string
alias)-(Appears on: -GameServerPort) -
--
PortPolicy is the port policy for the GameServer
- --(Appears on: -FleetSpec, -GameServerAllocationSpec) -
--
Priority is a sorting option for GameServers with Counters or Lists based on the Capacity. -PriorityType: Sort by a “Counter” or a “List”. -Key: The name of the Counter or List. If not found on the GameServer, has no impact. -Order: Sort by “Ascending” or “Descending”. Default is “Descending” so bigger Capacity is preferred. -“Ascending” would be smaller Capacity is preferred.
- -Field | -Description | -
+spec
+
+
+FleetSpec
+
+
+ |
+
+ + +
SdkServer ---(Appears on: -GameServerSpec) - -- SdkServer specifies parameters for the Agones SDK Server sidecar container - -
|
---|---|---|---|
-httpPort
+status
-int32
+
+FleetStatus
+
|
- HTTPPort is the port on which the SDK Server binds the HTTP gRPC gateway server to accept incoming connections |
string
alias)-(Appears on: -SdkServer) -
--
SdkServerLogLevel is the log level for SDK server (sidecar) logs
- --
Package v1 is the v1 version of the API.
- -Resource Types: - --
GameServerAllocation is the data structure for allocating against a set of
-GameServers, defined selectors
selectors
GameServer is the data structure for a GameServer resource.
+It is worth noting that while there is a GameServerStatus
Status entry for the GameServer
, it is not
+defined as a subresource - unlike Fleet
and other Agones resources.
+This is so that we can retain the ability to change multiple aspects of a GameServer
in a single atomic operation,
+which is particularly useful for operations such as allocation.
-allocation.agones.dev/v1
+agones.dev/v1
|
@@ -5943,7 +6104,7 @@ GameServerAllocation |
+GameServer |
||||||||||||||||||||
@@ -5963,8 +6124,8 @@ GameServerAllocation
spec
-
-GameServerAllocationSpec
+
+GameServerSpec
GameServerAllocation
status
-
-GameServerAllocationStatus
+
+GameServerStatus
|
-(Appears on: -GameServerAllocationSpec) -
--
CounterAction is an optional action that can be performed on a Counter at allocation. -Action: “Increment” or “Decrement” the Counter’s Count (optional). Must also define the Amount. -Amount: The amount to increment or decrement the Count (optional). Must be a positive integer. -Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max int64.
+GameServerSet is the data structure for a set of GameServers. +This matches philosophically with the relationship between +Deployments and ReplicaSets
-action
-
+apiVersion
+string |
+
+
+agones.dev/v1
+
+ |
+||||||||||
+kind
string
+ |
+GameServerSet |
+||||||||||
+metadata
+
+
+Kubernetes meta/v1.ObjectMeta
+
|
+Refer to the Kubernetes API documentation for the fields of the
+metadata field.
|
||||||||||
-amount
+spec
-int64
+
+GameServerSetSpec
+
+
+ |
+
+ + +
|
+||||||||||
+status
+
+
+GameServerSetStatus
+
|
@@ -6173,15 +6424,15 @@ CounterAction |
(Appears on: -GameServerSelector) +FleetStatus, +GameServerSetStatus)
-
CounterSelector is the filter options for a GameServer based on the count and/or available capacity. -0 for MaxCount or MaxAvailable means unlimited maximum. Default for all fields: 0
+AggregatedCounterStatus stores total Counter tracking values
-minCount
+count
int64
@@ -6203,7 +6454,7 @@ CounterSelector | |
-maxCount
+capacity
int64
@@ -6211,9 +6462,29 @@ CounterSelector
|
+(Appears on: +FleetStatus, +GameServerSetStatus) +
++
AggregatedListStatus stores total List tracking values
+ +Field | +Description | +
---|---|
-minAvailable
+count
int64
@@ -6223,7 +6494,7 @@ CounterSelector | |
-maxAvailable
+capacity
int64
@@ -6233,14 +6504,15 @@ CounterSelector |
(Appears on: -GameServerAllocation) +FleetStatus, +GameServerSetStatus)
-
GameServerAllocationSpec is the spec for a GameServerAllocation
+AggregatedPlayerStatus stores total player tracking values
-multiClusterSetting
+count
-
-MultiClusterSetting
-
+int64
|
- MultiClusterPolicySelector if specified, multi-cluster policies are applied. -Otherwise, allocation will happen locally. |
-required
+capacity
-
-GameServerSelector
-
+int64
|
- Deprecated: use field Selectors instead. If Selectors is set, this field is ignored. -Required is the GameServer selector from which to choose GameServers from. -Defaults to all GameServers. |
-preferred
-
-
-[]GameServerSelector
-
-
- |
-
- Deprecated: use field Selectors instead. If Selectors is set, this field is ignored.
-Preferred is an ordered list of preferred GameServer selectors
-that are optional to be fulfilled, but will be searched before the |
+
+(Appears on: +FleetSpec, +GameServerSetSpec) +
++
AllocationOverflow specifies what labels and/or annotations to apply on Allocated GameServers
+if the desired number of the underlying GameServerSet
drops below the number of Allocated GameServers
+attached to it.
Field | +Description |
---|---|
-priorities
+labels
-
-[]Priority
-
+map[string]string
|
(Optional)
- (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most -important for sorting. The allocator will use the first priority for sorting GameServers by -available Capacity in the Selector set and acts as a tie-breaker after sorting the game servers -by State and Strategy. Impacts which GameServer is checked first. +Labels to be applied to the |
-selectors
+annotations
-
-[]GameServerSelector
-
+map[string]string
|
- Ordered list of GameServer label selectors. -If the first selector is not matched, the selection attempts the second selector, and so on. -This is useful for things like smoke testing of new game servers. -Note: This field can only be set if neither Required or Preferred is set. +(Optional) +Annotations to be applied to the |
+(Appears on: +GameServerSpec, +GameServerStatus) +
++
CounterStatus stores the current counter values
+ +Field | +Description | +
---|---|
-scheduling
+count
-agones.dev/agones/pkg/apis.SchedulingStrategy
+int64
|
- Scheduling strategy. Defaults to “Packed”. |
-metadata
+capacity
-
-MetaPatch
-
+int64
|
- MetaPatch is optional custom metadata that is added to the game server at allocation -You can use this to tell the server necessary session data |
+(Appears on: +GameServerSpec, +GameServerStatus) +
++
Eviction specifies the eviction tolerance of the GameServer
+ +
-counters
-
-
-map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterAction
-
-
- |
-
-(Optional)
- (Alpha, CountsAndLists feature flag) Counters and Lists provide a set of actions to perform -on Counters and Lists during allocation. - |
+Field | +Description |
---|---|---|---|
-lists
+safe
-
-map[string]agones.dev/agones/pkg/apis/allocation/v1.ListAction
+
+EvictionSafe
|
+ Game server supports termination via SIGTERM: +- Always: Allow eviction for both Cluster Autoscaler and node drain for upgrades +- OnUpgrade: Allow eviction for upgrades alone +- Never (default): Pod should run to completion |
string
alias)(Appears on: -GameServerAllocationStatus) +Eviction)
-
GameServerAllocationState is the Allocation state
+EvictionSafe specified whether the game server supports termination via SIGTERM
-(Appears on: -GameServerAllocation) +Fleet)
-
GameServerAllocationStatus is the status for an GameServerAllocation resource
+FleetSpec is the spec for a Fleet
-state
+replicas
-
-GameServerAllocationState
-
+int32
|
- GameServerState is the current state of an GameServerAllocation, e.g. Allocated, or UnAllocated +Replicas are the number of GameServers that should be in this set. Defaults to 0. |
-gameServerName
+allocationOverflow
-string
+
+AllocationOverflow
+
|
+(Optional)
+ [Stage: Alpha]
+[FeatureFlag:FleetAllocationOverflow]
+Labels and/or Annotations to apply to overflowing GameServers when the number of Allocated GameServers is more
+than the desired replicas on the underlying |
-ports
+strategy
-
-[]GameServerStatusPort
+
+Kubernetes apps/v1.DeploymentStrategy
|
+ Deployment strategy |
-address
+scheduling
-string
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
+ Scheduling strategy. Defaults to “Packed”. |
-nodeName
+priorities
-string
+
+[]Priority
+
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most +important for sorting. The Fleetautoscaler will use the first priority for sorting GameServers +by total Capacity in the Fleet and acts as a tie-breaker after sorting the game servers by +State and Strategy. Impacts scale down logic. |
-source
+template
-string
+
+GameServerTemplateSpec
+
|
- If the allocation is from a remote cluster, Source is the endpoint of the remote agones-allocator. -Otherwise, Source is “local” +Template the GameServer template to apply for this Fleet |
(Appears on: -GameServerAllocationSpec) +Fleet, +FleetAutoscaleRequest)
-
GameServerSelector contains all the filter options for selecting -a GameServer for allocation.
+FleetStatus is the status of a Fleet
-LabelSelector
+replicas
-
-Kubernetes meta/v1.LabelSelector
-
+int32
|
-
-(Members of See: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +Replicas the total number of current GameServer replicas |
-gameServerState
+readyReplicas
-
-GameServerState
-
+int32
|
-(Optional)
- [Stage:Beta] -[FeatureFlag:StateAllocationFilter] -GameServerState specifies which State is the filter to be used when attempting to retrieve a GameServer -via Allocation. Defaults to “Ready”. The only other option is “Allocated”, which can be used in conjunction with -label/annotation/player selectors to retrieve an already Allocated GameServer. +ReadyReplicas are the number of Ready GameServer replicas |
-players
+reservedReplicas
-
-PlayerSelector
-
+int32
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerAllocationFilter] -Players provides a filter on minimum and maximum values for player capacity when retrieving a GameServer -through Allocation. Defaults to no limits. +ReservedReplicas are the total number of Reserved GameServer replicas in this fleet. +Reserved instances won’t be deleted on scale down, but won’t cause an autoscaler to scale up. |
-counters
+allocatedReplicas
-
-map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterSelector
-
+int32
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Counters provides filters on minimum and maximum values -for a Counter’s count and available capacity when retrieving a GameServer through Allocation. -Defaults to no limits. +AllocatedReplicas are the number of Allocated GameServer replicas |
-lists
+players
-
-map[string]agones.dev/agones/pkg/apis/allocation/v1.ListSelector
+
+AggregatedPlayerStatus
|
(Optional)
- (Alpha, CountsAndLists feature flag) Lists provides filters on minimum and maximum values -for List capacity, and for the existence of a value in a List, when retrieving a GameServer -through Allocation. Defaults to no limits. - |
-
-(Appears on: -GameServerAllocationSpec) -
--
ListAction is an optional action that can be performed on a List at allocation. -AddValues: Append values to a List’s Values array (optional). Any duplicate values will be ignored. -Capacity: Update the maximum capacity of the Counter to this number (optional). Min 0, Max 1000.
- -Field | -Description | +
---|---|
-addValues
+counters
-[]string
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedCounterStatus
+
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) Counters provides aggregated Counter capacity and Counter +count for this Fleet. |
-capacity
+lists
-int64
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedListStatus
+
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) Lists provides aggregated List capacityv and List values +for this Fleet. |
(Appears on: -GameServerSelector) +GameServerSpec)
-
ListSelector is the filter options for a GameServer based on List available capacity and/or the -existence of a value in a List. -0 for MaxAvailable means unlimited maximum. Default for integer fields: 0 -“” for ContainsValue means ignore field. Default for string field: “”
+GameServerPort defines a set of Ports that +are to be exposed via the GameServer
-containsValue
+name
string
|
+ Name is the descriptive name of the port |
-minAvailable
+portPolicy
-int64
+
+PortPolicy
+
|
+ PortPolicy defines the policy for how the HostPort is populated.
+Dynamic port will allocate a HostPort within the selected MIN_PORT and MAX_PORT range passed to the controller
+at installation time.
+When |
-maxAvailable
+container
-int64
+string
|
+(Optional)
+ Container is the name of the container on which to open the port. Defaults to the game server container. |
-(Appears on: -GameServerAllocationSpec) -
--
MetaPatch is the metadata used to patch the GameServer metadata on allocation
- -Field | -Description | +
+containerPort
+
+int32
+
+ |
+
+ ContainerPort is the port that is being opened on the specified container’s process + |
---|---|---|---|
-labels
+hostPort
-map[string]string
+int32
|
+ HostPort the port exposed on the host for clients to connect to |
||
-annotations
+protocol
-map[string]string
+
+Kubernetes core/v1.Protocol
+
|
+ Protocol is the network protocol being used. Defaults to UDP. TCP and TCPUDP are other options. |
(Appears on: -GameServerAllocationSpec) +GameServerSet)
-
MultiClusterSetting specifies settings for multi-cluster allocation.
+GameServerSetSpec the specification for GameServerSet
-enabled
+replicas
-bool
+int32
|
+ Replicas are the number of GameServers that should be in this set |
-policySelector
+allocationOverflow
-
-Kubernetes meta/v1.LabelSelector
+
+AllocationOverflow
|
+(Optional)
+ [Stage: Alpha]
+[FeatureFlag:FleetAllocationOverflow]
+Labels and Annotations to apply to GameServers when the number of Allocated GameServers drops below
+the desired replicas on the underlying |
-(Appears on: -GameServerSelector) -
--
PlayerSelector is the filter options for a GameServer based on player counts
- -Field | -Description | +
+scheduling
+
+agones.dev/agones/pkg/apis.SchedulingStrategy
+
+ |
+
+ Scheduling strategy. Defaults to “Packed”. + |
---|---|---|---|
-minAvailable
+priorities
-int64
+
+[]Priority
+
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most +important for sorting. The Fleetautoscaler will use the first priority for sorting GameServers +by total Capacity in the Fleet and acts as a tie-breaker after sorting the game servers by +State and Strategy. Impacts scale down logic. |
||
-maxAvailable
+template
-int64
+
+GameServerTemplateSpec
+
|
+ Template the GameServer template to apply for this GameServerSet |
-
Package v1 is the v1 version of the API.
+(Appears on: +GameServerSet) -Resource Types: - --
FleetAutoscaler is the data structure for a FleetAutoscaler resource
+GameServerSetStatus is the status of a GameServerSet
-apiVersion
-string |
-
-
-autoscaling.agones.dev/v1
-
+replicas
+
+int32
+
|
-||||||
-kind
-string
+Replicas is the total number of current GameServer replicas |
-FleetAutoscaler |
||||||
-metadata
+readyReplicas
-
-Kubernetes meta/v1.ObjectMeta
-
+int32
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+ReadyReplicas is the number of Ready GameServer replicas |
||||||
-spec
+reservedReplicas
-
-FleetAutoscalerSpec
-
+int32
|
- - -
[Stage:Alpha] +[FeatureFlag:PlayerTracking] +Players is the current total player capacity and count for this GameServerSet |
||||||
-status
+counters
-
-FleetAutoscalerStatus
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedCounterStatus
+
+
+ |
+
+(Optional)
+ (Alpha, CountsAndLists feature flag) Counters provides aggregated Counter capacity and Counter +count for this GameServerSet. + |
+||||||
+lists
+
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedListStatus
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) Lists provides aggregated List capacity and List values +for this GameServerSet. |
(Appears on: -FleetAutoscalerPolicy) +GameServer, +GameServerTemplateSpec)
-
BufferPolicy controls the desired behavior of the buffer policy.
+GameServerSpec is the spec for a GameServer resource
-maxReplicas
+container
-int32
+string
|
- MaxReplicas is the maximum amount of replicas that the fleet may have. -It must be bigger than both MinReplicas and BufferSize +Container specifies which Pod container is the game server. Only required if there is more than one +container defined |
-minReplicas
+ports
-int32
+
+[]GameServerPort
+
|
- MinReplicas is the minimum amount of replicas that the fleet must have -If zero, it is ignored. -If non zero, it must be smaller than MaxReplicas and bigger than BufferSize +Ports are the array of ports that can be exposed via the game server |
-bufferSize
+health
-k8s.io/apimachinery/pkg/util/intstr.IntOrString
+
+Health
+
|
- BufferSize defines how many replicas the autoscaler tries to have ready all the time -Value can be an absolute number (ex: 5) or a percentage of desired gs instances (ex: 15%) -Absolute number is calculated from percentage by rounding up. -Example: when this is set to 20%, the autoscaler will make sure that 20% -of the fleet’s game server replicas are ready. When this is set to 20, -the autoscaler will make sure that there are 20 available game servers -Must be bigger than 0 -Note: by “ready” we understand in this case “non-allocated”; this is done to ensure robustness -and computation stability in different edge case (fleet just created, not enough -capacity in the cluster etc) +Health configures health checking |
-(Appears on: -FleetAutoscalerPolicy) -
--
CounterPolicy controls the desired behavior of the Counter autoscaler policy.
- -Field | -Description | +
+scheduling
+
+agones.dev/agones/pkg/apis.SchedulingStrategy
+
+ |
+
+ Scheduling strategy. Defaults to “Packed” + |
---|---|---|---|
-key
+sdkServer
-string
+
+SdkServer
+
|
- Key is the name of the Counter. Required field. +SdkServer specifies parameters for the Agones SDK Server sidecar container |
||
-maxCapacity
+template
-int64
+
+Kubernetes core/v1.PodTemplateSpec
+
|
- MaxCapacity is the maximum aggregate Counter total capacity across the fleet. -MaxCapacity must be bigger than both MinCapacity and BufferSize. Required field. +Template describes the Pod that will be created for the GameServer |
||
-minCapacity
+players
-int64
+
+PlayersSpec
+
|
- MinCapacity is the minimum aggregate Counter total capacity across the fleet. -If zero, MinCapacity is ignored. -If non zero, MinCapacity must be smaller than MaxCapacity and bigger than BufferSize. +(Optional) +(Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. |
||
-bufferSize
+counters
-k8s.io/apimachinery/pkg/util/intstr.IntOrString
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
+
|
- BufferSize is the size of a buffer of counted items that are available in the Fleet (available -capacity). Value can be an absolute number (ex: 5) or a percentage of desired gs instances -(ex: 5%). An absolute number is calculated from percentage by rounding up. -Must be bigger than 0. Required field. +(Optional) +(Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. |
-(Appears on: -FleetAutoscalerSync) -
--
FixedIntervalSync controls the desired behavior of the fixed interval based sync.
- -Field | -Description | +
+lists
+
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
+
+
+ |
++ |
---|---|---|---|
-seconds
+eviction
-int32
+
+Eviction
+
|
- Seconds defines how often we run fleet autoscaling in seconds +(Optional) +Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. |
string
alias)+(Appears on: +GameServerSelector, +GameServerStatus) +
++
GameServerState is the state for the GameServer
+ +(Appears on: -FleetAutoscaleReview) +GameServer)
-
FleetAutoscaleRequest defines the request to webhook autoscaler endpoint
+GameServerStatus is the status for a GameServer resource
-uid
+state
-k8s.io/apimachinery/pkg/types.UID
+
+GameServerState
+
|
- UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are -otherwise identical (parallel requests, requests when earlier requests did not modify etc) -The UID is meant to track the round trip (request/response) between the Autoscaler and the WebHook, not the user request. -It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. +GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc |
-name
+ports
-string
+
+[]GameServerStatusPort
+
|
- Name is the name of the Fleet being scaled |
-namespace
+address
string
|
- Namespace is the namespace associated with the request (if any). |
-status
+nodeName
-
-FleetStatus
-
+string
|
- The Fleet’s status values |
-(Appears on: -FleetAutoscaleReview) -
--
FleetAutoscaleResponse defines the response of webhook autoscaler endpoint
- -Field | -Description | -
---|---|
-uid
+reservedUntil
-k8s.io/apimachinery/pkg/types.UID
+
+Kubernetes meta/v1.Time
+
|
- UID is an identifier for the individual request/response. -This should be copied over from the corresponding FleetAutoscaleRequest. |
-scale
+players
-bool
+
+PlayerStatus
+
|
- Set to false if no scaling should occur to the Fleet +(Optional) +[Stage:Alpha] +[FeatureFlag:PlayerTracking] |
-replicas
+counters
-int32
-
- |
-
- The targeted replica count - |
-
-
FleetAutoscaleReview is passed to the webhook with a populated Request value, -and then returned with a populated Response.
- -Field | -Description | -
---|---|
-request
-
-
-FleetAutoscaleRequest
-
-
- |
-- | -
-response
-
-
-FleetAutoscaleResponse
-
-
- |
-- | -
-(Appears on: -FleetAutoscalerSpec) -
--
FleetAutoscalerPolicy describes how to scale a fleet
- -Field | -Description | -
---|---|
-type
-
-
-FleetAutoscalerPolicyType
-
-
- |
-
- Type of autoscaling policy. - |
-
-buffer
-
-
-BufferPolicy
-
-
- |
-
-(Optional)
- Buffer policy config params. Present only if FleetAutoscalerPolicyType = Buffer. - |
-
-webhook
-
-
-WebhookPolicy
-
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
+
|
(Optional)
- Webhook policy config params. Present only if FleetAutoscalerPolicyType = Webhook. +(Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. |
-counter
+lists
-
-CounterPolicy
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
|
(Optional)
- [Stage:Alpha] -[FeatureFlag:CountsAndLists] -Counter policy config params. Present only if FleetAutoscalerPolicyType = Counter. |
-list
+eviction
-
-ListPolicy
+
+Eviction
|
(Optional)
- [Stage:Alpha] -[FeatureFlag:CountsAndLists] -List policy config params. Present only if FleetAutoscalerPolicyType = List. +Eviction specifies the eviction tolerance of the GameServer. |
string
alias)-(Appears on: -FleetAutoscalerPolicy) -
--
FleetAutoscalerPolicyType is the policy for autoscaling -for a given Fleet
- -(Appears on: -FleetAutoscaler) +GameServerAllocationStatus, +GameServerStatus)
-
FleetAutoscalerSpec is the spec for a Fleet Scaler
+GameServerStatusPort shows the port that was allocated to a +GameServer.
-fleetName
+name
string
@@ -7371,43 +7512,25 @@ FleetAutoscalerSpec | |
-policy
-
-
-FleetAutoscalerPolicy
-
-
- |
-
- Autoscaling policy - |
-
-sync
+port
-
-FleetAutoscalerSync
-
+int32
|
-(Optional)
- [Stage:Beta] -[FeatureFlag:CustomFasSyncInterval] -Sync defines when FleetAutoscalers runs autoscaling |
(Appears on: -FleetAutoscaler) +FleetSpec, +GameServerSetSpec)
-
FleetAutoscalerStatus defines the current status of a FleetAutoscaler
+GameServerTemplateSpec is a template for GameServers
-currentReplicas
-
-int32
-
- |
-
- CurrentReplicas is the current number of gameserver replicas -of the fleet managed by this autoscaler, as last seen by the autoscaler - |
-
-desiredReplicas
-
-int32
-
- |
-
- DesiredReplicas is the desired number of gameserver replicas -of the fleet managed by this autoscaler, as last calculated by the autoscaler - |
-
-lastScaleTime
+metadata
-
-Kubernetes meta/v1.Time
+
+Kubernetes meta/v1.ObjectMeta
|
-(Optional)
- lastScaleTime is the last time the FleetAutoscaler scaled the attached fleet, - |
-
-ableToScale
-
-bool
-
- |
-
- AbleToScale indicates that we can access the target fleet +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
-scalingLimited
+spec
-bool
+
+GameServerSpec
+
|
- ScalingLimited indicates that the calculated scale would be above or below the range -defined by MinReplicas and MaxReplicas, and has thus been capped. - |
-
-(Appears on: -FleetAutoscalerSpec) -
--
FleetAutoscalerSync describes when to sync a fleet
- +Field | -Description | -
---|---|
-type
+container
-
-FleetAutoscalerSyncType
-
+string
|
- Type of autoscaling sync. +Container specifies which Pod container is the game server. Only required if there is more than one +container defined |
-fixedInterval
+ports
-
-FixedIntervalSync
+
+[]GameServerPort
|
-(Optional)
- FixedInterval config params. Present only if FleetAutoscalerSyncType = FixedInterval. +Ports are the array of ports that can be exposed via the game server |
string
alias)-(Appears on: -FleetAutoscalerSync) -
--
FleetAutoscalerSyncType is the sync strategy for a given Fleet
- --(Appears on: -FleetAutoscalerPolicy) -
--
ListPolicy controls the desired behavior of the List autoscaler policy.
- -Field | -Description | -
---|---|
-key
+health
-string
+
+Health
+
|
- Key is the name of the List. Required field. +Health configures health checking |
-maxCapacity
+scheduling
-int64
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- MaxCapacity is the maximum aggregate List total capacity across the fleet. -MaxCapacity must be bigger than both MinCapacity and BufferSize. Required field. +Scheduling strategy. Defaults to “Packed” |
-minCapacity
+sdkServer
-int64
+
+SdkServer
+
|
- MinCapacity is the minimum aggregate List total capacity across the fleet. -If zero, it is ignored. -If non zero, it must be smaller than MaxCapacity and bigger than BufferSize. +SdkServer specifies parameters for the Agones SDK Server sidecar container |
-bufferSize
+template
-k8s.io/apimachinery/pkg/util/intstr.IntOrString
+
+Kubernetes core/v1.PodTemplateSpec
+
|
- BufferSize is the size of a buffer based on the List capacity that is available over the -current aggregate List length in the Fleet (available capacity). It can be specified either -as an absolute value (i.e. 5) or percentage format (i.e. 5%). -Must be bigger than 0. Required field. +Template describes the Pod that will be created for the GameServer |
-(Appears on: -FleetAutoscalerPolicy) -
--
WebhookPolicy controls the desired behavior of the webhook policy. -It contains the description of the webhook autoscaler service -used to form url which is accessible inside the cluster
- -Field | -Description | -|
---|---|---|
-url
+players
-string
+
+PlayersSpec
+
|
-
-(Optional)
-
The Please note that using The scheme must be “https”; the URL must begin with “https://”. -A path is optional, and if present may be any string permissible in -a URL. You may use the path to pass an arbitrary string to the -webhook, for example, a cluster identifier. -Attempting to use a user or basic auth e.g. “user:password@” is not -allowed. Fragments (“#…”) and query parameters (“?…”) are not -allowed, either. - |
+
+(Optional)
+ (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. + |
-service
+counters
-
-Kubernetes admissionregistration/v1.ServiceReference
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
|
(Optional)
-
If the webhook is running within the cluster, then you should use (Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. |
|
-caBundle
+lists
-[]byte
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
+
+
+ |
++ | +|
+eviction
+
+
+Eviction
+
|
(Optional)
-
Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. + |
+
-
Package v1 is the v1 version of the API.
+(Appears on: +GameServerSpec) -Resource Types: - --
GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API
+Health configures health checking on the GameServer
-apiVersion
-string |
-
-
-multicluster.agones.dev/v1
-
- |
-||||||
-kind
-string
- |
-GameServerAllocationPolicy |
-||||||
-metadata
+disabled
-
-Kubernetes meta/v1.ObjectMeta
-
+bool
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+Disabled is whether health checking is disabled or not |
||||||
-spec
-
-
-GameServerAllocationPolicySpec
-
-
- |
-
- - -
InitialDelaySeconds initial delay before checking health |
(Appears on: -GameServerAllocationPolicySpec) +GameServerSpec, +GameServerStatus)
-
ClusterConnectionInfo defines the connection information for a cluster
+ListStatus stores the current list values
-clusterName
+capacity
-string
+int64
|
- Optional: the name of the targeted cluster |
-allocationEndpoints
+values
[]string
|
- The endpoints for the allocator service in the targeted cluster. -If the AllocationEndpoints is not set, the allocation happens on local cluster. -If there are multiple endpoints any of the endpoints that can handle allocation request should suffice |
+(Appears on: +GameServerStatus) +
++
PlayerStatus stores the current player capacity values
+ +Field | +Description | +
---|---|
-secretName
+count
-string
+int64
|
- The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster |
-namespace
+capacity
-string
+int64
|
- The cluster namespace from which to allocate gameservers |
-serverCa
+ids
-[]byte
+[]string
|
- The PEM encoded server CA, used by the allocator client to authenticate the remote server. |
-
ConnectionInfoIterator an iterator on ClusterConnectionInfo
+(Appears on: +GameServerSpec) + ++
PlayersSpec tracks the initial player capacity
-currPriority
+initialCapacity
-int
+int64
|
- currPriority Current priority index from the orderedPriorities |
string
alias)+(Appears on: +GameServerPort) +
++
PortPolicy is the port policy for the GameServer
+ ++(Appears on: +FleetSpec, +GameServerAllocationSpec, +GameServerSetSpec) +
++
Priority is a sorting option for GameServers with Counters or Lists based on the Capacity. +PriorityType: Sort by a “Counter” or a “List”. +Key: The name of the Counter or List. If not found on the GameServer, has no impact. +Order: Sort by “Ascending” or “Descending”. Default is “Descending” so bigger Capacity is preferred. +“Ascending” would be smaller Capacity is preferred.
+ +Field | +Description | +
---|---|
-orderedPriorities
+priorityType
-[]int32
+string
|
- orderedPriorities list of ordered priorities |
-priorityToCluster
+key
-map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
+string
|
- priorityToCluster Map of priority to cluster-policies map |
-clusterBlackList
+order
-map[string]bool
+string
|
- clusterBlackList the cluster blacklist for the clusters that has already returned |
(Appears on: -GameServerAllocationPolicy) +GameServerSpec)
-
GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
+SdkServer specifies parameters for the Agones SDK Server sidecar container
-priority
+logLevel
-int32
+
+SdkServerLogLevel
+
|
+ LogLevel for SDK server (sidecar) logs. Defaults to “Info” |
-weight
+grpcPort
-int
+int32
|
+ GRPCPort is the port on which the SDK Server binds the gRPC server to accept incoming connections |
-connectionInfo
+httpPort
-
-ClusterConnectionInfo
-
+int32
|
+ HTTPPort is the port on which the SDK Server binds the HTTP gRPC gateway server to accept incoming connections |
string
alias)+(Appears on: +SdkServer) +
++
SdkServerLogLevel is the log level for SDK server (sidecar) logs
+
Generated with gen-crd-api-reference-docs
.