From 3bb4bb557ab981cf80979a45a087edd3aba359e4 Mon Sep 17 00:00:00 2001
From: Ivy Gooch Packages:
Package v1 is the v1 version of the API.
-allocation.agones.dev/v1
+agones.dev/v1
-
GameServerAllocation is the data structure for allocating against a set of
-GameServers, defined selectors
selectors
Fleet is the data structure for a Fleet resource
-allocation.agones.dev/v1
+agones.dev/v1
|
@@ -56,13 +59,13 @@ GameServerAllocation |
+Fleet |
||||||||||
metadata
-
+
Kubernetes meta/v1.ObjectMeta
@@ -76,8 +79,8 @@ GameServerAllocation
spec
-
-GameServerAllocationSpec
+
+FleetSpec
GameServerAllocation
status
-
-GameServerAllocationStatus
+
+FleetStatus
|
-(Appears on: -GameServerAllocation) -
--
GameServerAllocationSpec is the spec for a GameServerAllocation
+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.
-multiClusterSetting
-
-
-MultiClusterSetting
-
-
+apiVersion
+string |
+
+
+agones.dev/v1
+
|
+
- MultiClusterPolicySelector if specified, multi-cluster policies are applied. -Otherwise, allocation will happen locally. +kind
+string
|
+GameServer |
-required
+metadata
-
-GameServerSelector
+
+Kubernetes meta/v1.ObjectMeta
|
- 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. +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
-preferred
+spec
-
-[]GameServerSelector
+
+GameServerSpec
|
- 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 |
-
-selectors
+container
-
-[]GameServerSelector
-
+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. +Container specifies which Pod container is the game server. Only required if there is more than one +container defined |
-scheduling
+ports
-agones.dev/agones/pkg/apis.SchedulingStrategy
+
+[]GameServerPort
+
|
- Scheduling strategy. Defaults to “Packed”. +Ports are the array of ports that can be exposed via the game server |
-metadata
+health
-
-MetaPatch
+
+Health
|
- 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 +Health configures health checking |
string
alias)-(Appears on: -GameServerAllocationStatus) -
--
GameServerAllocationState is the Allocation state
- --(Appears on: -GameServerAllocation) -
--
GameServerAllocationStatus is the status for an GameServerAllocation resource
- -Field | -Description | -
---|---|
-state
+scheduling
-
-GameServerAllocationState
-
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- GameServerState is the current state of an GameServerAllocation, e.g. Allocated, or UnAllocated +Scheduling strategy. Defaults to “Packed” |
-gameServerName
+sdkServer
-string
+
+SdkServer
+
|
+ SdkServer specifies parameters for the Agones SDK Server sidecar container |
-ports
+template
-
-[]GameServerStatusPort
+
+Kubernetes core/v1.PodTemplateSpec
|
+ Template describes the Pod that will be created for the GameServer |
-address
+players
-string
+
+PlayersSpec
+
|
+(Optional)
+ (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. |
-nodeName
+eviction
-string
+
+Eviction
+
|
+(Optional)
+ (Alpha, SafeToEvict feature flag) Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. |
-(Appears on: -GameServerAllocationSpec) -
--
GameServerSelector contains all the filter options for selecting -a GameServer for allocation.
+ + +status
+
+
+GameServerStatus
+
+
++
GameServerSet is the data structure for a set of GameServers. +This matches philosophically with the relationship between +Deployments and ReplicaSets
-LabelSelector
+apiVersion
+string |
+
+
+agones.dev/v1
+
+ |
+||||||
+kind
+string
+ |
+GameServerSet |
+||||||
+metadata
-
-Kubernetes meta/v1.LabelSelector
+
+Kubernetes meta/v1.ObjectMeta
|
- See: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
||||||
-gameServerState
+spec
-
-GameServerState
+
+GameServerSetSpec
|
-(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. ++ +
|
+||||||
+status
+
+
+GameServerSetStatus
|
-(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. |
(Appears on: -GameServerAllocationSpec) +FleetStatus, +GameServerSetStatus)
-
MetaPatch is the metadata used to patch the GameServer metadata on allocation
+AggregatedPlayerStatus stores total player tracking values
-labels
+count
-map[string]string
+int64
|
@@ -477,9 +475,9 @@ MetaPatch |
-annotations
+capacity
-map[string]string
+int64
|
@@ -487,14 +485,15 @@ MetaPatch |
(Appears on: -GameServerAllocationSpec) +GameServerSpec, +GameServerStatus)
-
MultiClusterSetting specifies settings for multi-cluster allocation.
+Eviction specifies the eviction tolerance of the GameServer
-enabled
-
-bool
-
- |
-- | -
-policySelector
+safe
-
-Kubernetes meta/v1.LabelSelector
+
+EvictionSafe
|
+ (Alpha, SafeToEvict feature flag) +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: +Eviction) +
++
EvictionSafe specified whether the game server supports termination via SIGTERM
+ +(Appears on: -GameServerSelector) +Fleet)
-
PlayerSelector is the filter options for a GameServer based on player counts
+FleetSpec is the spec for a Fleet
-minAvailable
+replicas
-int64
+int32
|
+ Replicas are the number of GameServers that should be in this set. Defaults to 0. |
-maxAvailable
+strategy
-int64
+
+Kubernetes apps/v1.DeploymentStrategy
+
+
+ |
+
+ Deployment strategy + |
+
+scheduling
+
+agones.dev/agones/pkg/apis.SchedulingStrategy
+
+ |
+
+ Scheduling strategy. Defaults to “Packed”. + |
+
+template
+
+
+GameServerTemplateSpec
+
|
+ Template the GameServer template to apply for this Fleet |
-
Package v1 is the v1 version of the API.
+(Appears on: +Fleet, +FleetAutoscaleRequest) -Resource Types: - --
FleetAutoscaler is the data structure for a FleetAutoscaler resource
+FleetStatus is the status of a Fleet
-apiVersion
-string |
+
-
-autoscaling.agones.dev/v1
-
+Replicas the total number of current GameServer replicas |
|
-kind
-string
+readyReplicas
+
+int32
+
+ |
+
+ ReadyReplicas are the number of Ready GameServer replicas |
-FleetAutoscaler |
-metadata
+reservedReplicas
-
-Kubernetes meta/v1.ObjectMeta
-
+int32
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+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. |
|
-spec
+allocatedReplicas
-
-FleetAutoscalerSpec
-
+int32
|
- - + AllocatedReplicas are the number of Allocated GameServer replicas + |
+|
+players
+
+
+AggregatedPlayerStatus
+
+
+ |
+
+(Optional)
+ [Stage:Alpha] +[FeatureFlag:PlayerTracking] +Players are the current total player capacity and count for this Fleet + |
+
+(Appears on: +GameServerSpec) +
++
GameServerPort defines a set of Ports that +are to be exposed via the GameServer
+Field | +Description | +
---|---|
-fleetName
+name
string
|
+ Name is the descriptive name of the port |
-policy
+portPolicy
-
-FleetAutoscalerPolicy
+
+PortPolicy
|
- Autoscaling policy +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 |
-sync
+container
-
-FleetAutoscalerSync
-
+string
|
(Optional)
- [Stage:Beta] -[FeatureFlag:CustomFasSyncInterval] -Sync defines when FleetAutoscalers runs autoscaling +Container is the name of the container on which to open the port. Defaults to the game server container. |
containerPort
+
+int32
+
+ContainerPort is the port that is being opened on the specified container’s process
status
+hostPort
-
-FleetAutoscalerStatus
+int32
+
+HostPort the port exposed on the host for clients to connect to
+protocol
+
+
+Kubernetes core/v1.Protocol
Protocol is the network protocol being used. Defaults to UDP. TCP and TCPUDP are other options.
(Appears on: -FleetAutoscalerPolicy) +GameServerSet)
-
BufferPolicy controls the desired behavior of the buffer policy.
+GameServerSetSpec the specification for GameServerSet
-maxReplicas
+replicas
int32
|
- MaxReplicas is the maximum amount of replicas that the fleet may have. -It must be bigger than both MinReplicas and BufferSize +Replicas are the number of GameServers that should be in this set |
-minReplicas
+scheduling
-int32
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- 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 +Scheduling strategy. Defaults to “Packed”. |
-bufferSize
+template
-k8s.io/apimachinery/pkg/util/intstr.IntOrString
+
+GameServerTemplateSpec
+
|
- 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) +Template the GameServer template to apply for this GameServerSet |
(Appears on: -FleetAutoscalerSync) +GameServerSet)
-
FixedIntervalSync controls the desired behavior of the fixed interval based sync.
+GameServerSetStatus is the status of a GameServerSet
-seconds
+replicas
int32
|
- Seconds defines how often we run fleet autoscaling in seconds +Replicas is the total number of current GameServer replicas |
-(Appears on: -FleetAutoscaleReview) -
--
FleetAutoscaleRequest defines the request to webhook autoscaler endpoint
- -Field | -Description | +
+readyReplicas
+
+int32
+
+ |
+
+ ReadyReplicas is the number of Ready GameServer replicas + |
---|---|---|---|
-uid
+reservedReplicas
-k8s.io/apimachinery/pkg/types.UID
+int32
|
- 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. +ReservedReplicas is the number of Reserved GameServer replicas |
||
-name
+allocatedReplicas
-string
+int32
|
- Name is the name of the Fleet being scaled +AllocatedReplicas is the number of Allocated GameServer replicas |
||
-namespace
+shutdownReplicas
-string
+int32
|
- Namespace is the namespace associated with the request (if any). +ShutdownReplicas is the number of Shutdown GameServers replicas |
||
-status
+players
-
-FleetStatus
+
+AggregatedPlayerStatus
|
- The Fleet’s status values +(Optional) +[Stage:Alpha] +[FeatureFlag:PlayerTracking] +Players is the current total player capacity and count for this GameServerSet |
(Appears on: -FleetAutoscaleReview) +GameServer, +GameServerTemplateSpec)
-
FleetAutoscaleResponse defines the response of webhook autoscaler endpoint
+GameServerSpec is the spec for a GameServer resource
-uid
+container
-k8s.io/apimachinery/pkg/types.UID
+string
|
- UID is an identifier for the individual request/response. -This should be copied over from the corresponding FleetAutoscaleRequest. +Container specifies which Pod container is the game server. Only required if there is more than one +container defined |
-scale
+ports
-bool
+
+[]GameServerPort
+
|
- Set to false if no scaling should occur to the Fleet +Ports are the array of ports that can be exposed via the game server |
-replicas
+health
-int32
+
+Health
+
|
- The targeted replica count +Health configures health checking |
-
FleetAutoscaleReview is passed to the webhook with a populated Request value, -and then returned with a populated Response.
- -Field | -Description | -
---|---|
-request
+scheduling
-
-FleetAutoscaleRequest
-
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
+ Scheduling strategy. Defaults to “Packed” |
-response
+sdkServer
-
-FleetAutoscaleResponse
-
+
+SdkServer
+
|
+ SdkServer specifies parameters for the Agones SDK Server sidecar container |
-(Appears on: -FleetAutoscalerSpec) -
--
FleetAutoscalerPolicy describes how to scale a fleet
- -Field | -Description | -
---|---|
-type
+template
-
-FleetAutoscalerPolicyType
+
+Kubernetes core/v1.PodTemplateSpec
|
- Type of autoscaling policy. +Template describes the Pod that will be created for the GameServer |
-buffer
+players
-
-BufferPolicy
+
+PlayersSpec
|
(Optional)
- Buffer policy config params. Present only if FleetAutoscalerPolicyType = Buffer. +(Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. |
-webhook
+eviction
-
-WebhookPolicy
+
+Eviction
|
(Optional)
- Webhook policy config params. Present only if FleetAutoscalerPolicyType = Webhook. +(Alpha, SafeToEvict feature flag) Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. |
string
alias)(Appears on: -FleetAutoscalerPolicy) +GameServerSelector, +GameServerStatus)
-
FleetAutoscalerPolicyType is the policy for autoscaling -for a given Fleet
+GameServerState is the state for the GameServer
-(Appears on: -FleetAutoscaler) +GameServer)
-
FleetAutoscalerSpec is the spec for a Fleet Scaler
+GameServerStatus is the status for a GameServer resource
-fleetName
-
-string
-
- |
-- | -
-policy
+state
-
-FleetAutoscalerPolicy
+
+GameServerState
|
- Autoscaling policy +GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc |
-sync
+ports
-
-FleetAutoscalerSync
+
+[]GameServerStatusPort
|
-(Optional)
- [Stage:Beta] -[FeatureFlag:CustomFasSyncInterval] -Sync defines when FleetAutoscalers runs autoscaling |
-(Appears on: -FleetAutoscaler) -
--
FleetAutoscalerStatus defines the current status of a FleetAutoscaler
- -Field | -Description | -
---|---|
-currentReplicas
+address
-int32
+string
|
- CurrentReplicas is the current number of gameserver replicas -of the fleet managed by this autoscaler, as last seen by the autoscaler |
-desiredReplicas
+nodeName
-int32
+string
|
- DesiredReplicas is the desired number of gameserver replicas -of the fleet managed by this autoscaler, as last calculated by the autoscaler |
-lastScaleTime
+reservedUntil
-
+
Kubernetes meta/v1.Time
|
-(Optional)
- lastScaleTime is the last time the FleetAutoscaler scaled the attached fleet, |
-ableToScale
+players
-bool
+
+PlayerStatus
+
|
- AbleToScale indicates that we can access the target fleet +(Optional) +[Stage:Alpha] +[FeatureFlag:PlayerTracking] |
-scalingLimited
+eviction
-bool
+
+Eviction
+
|
- ScalingLimited indicates that the calculated scale would be above or below the range -defined by MinReplicas and MaxReplicas, and has thus been capped. +(Alpha, SafeToEvict feature flag) Eviction specifies the eviction tolerance of the GameServer. |
(Appears on: -FleetAutoscalerSpec) +GameServerAllocationStatus, +GameServerStatus)
-
FleetAutoscalerSync describes when to sync a fleet
+GameServerStatusPort shows the port that was allocated to a +GameServer.
-type
+name
-
-FleetAutoscalerSyncType
-
+string
|
- Type of autoscaling sync. |
-fixedInterval
+port
-
-FixedIntervalSync
-
+int32
|
-(Optional)
- FixedInterval config params. Present only if FleetAutoscalerSyncType = FixedInterval. |
string
alias)-(Appears on: -FleetAutoscalerSync) -
--
FleetAutoscalerSyncType is the sync strategy for a given Fleet
- -(Appears on: -FleetAutoscalerPolicy) +FleetSpec, +GameServerSetSpec)
-
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
+GameServerTemplateSpec is a template for GameServers
-url
+metadata
-string
+
+Kubernetes meta/v1.ObjectMeta
+
|
-(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. +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-service
+spec
-
-Kubernetes admissionregistration/v1.ServiceReference
+
+GameServerSpec
|
-(Optional)
-
If the webhook is running within the cluster, then you should use + +
- multicluster.agones.dev/v1-- Package v1 is the v1 version of the API. - -Resource Types: - -GameServerAllocationPolicy --- GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API - -
ClusterConnectionInfo
+ |
-clusterName
-
-string
-
- |
-
- Optional: the name of the targeted cluster - |
-
-allocationEndpoints
+disabled
-[]string
+bool
|
- 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 +Disabled is whether health checking is disabled or not |
-secretName
+periodSeconds
-string
+int32
|
- The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster +PeriodSeconds is the number of seconds each health ping has to occur in |
-namespace
+failureThreshold
-string
+int32
|
- The cluster namespace from which to allocate gameservers +FailureThreshold how many failures in a row constitutes unhealthy |
-serverCa
+initialDelaySeconds
-[]byte
+int32
|
- The PEM encoded server CA, used by the allocator client to authenticate the remote server. +InitialDelaySeconds initial delay before checking health |
-
ConnectionInfoIterator an iterator on ClusterConnectionInfo
+(Appears on: +GameServerStatus) + ++
PlayerStatus stores the current player capacity values
-currPriority
+count
-int
+int64
|
- currPriority Current priority index from the orderedPriorities |
-orderedPriorities
+capacity
-[]int32
+int64
|
- orderedPriorities list of ordered priorities |
-priorityToCluster
+ids
-map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
+[]string
|
- priorityToCluster Map of priority to cluster-policies map |
+(Appears on: +GameServerSpec) +
++
PlayersSpec tracks the initial player capacity
+ +Field | +Description | +
---|---|
-clusterBlackList
+initialCapacity
-map[string]bool
+int64
|
- clusterBlackList the cluster blacklist for the clusters that has already returned |
string
alias)+(Appears on: +GameServerPort) +
++
PortPolicy is the port policy for the GameServer
+ +(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
+
Package v1 is the v1 version of the API.
Resource Types: --
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
|
@@ -1618,13 +1600,13 @@ Fleet |
+GameServerAllocation |
||||||||||||
metadata
-
+
Kubernetes meta/v1.ObjectMeta
@@ -1638,8 +1620,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.
+
GameServerAllocationSpec is the spec for a GameServerAllocation
-apiVersion
-string |
+
-
-agones.dev/v1
-
+MultiClusterPolicySelector if specified, multi-cluster policies are applied. +Otherwise, allocation will happen locally. |
||||||||||||||||
-kind
-string
+required
+
+
+GameServerSelector
+
+
+ |
+
+ 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. |
-GameServer |
|||||||||||||||
-metadata
+preferred
-
-Kubernetes meta/v1.ObjectMeta
+
+[]GameServerSelector
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+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 |
||||||||||||||||
-spec
+selectors
-
-GameServerSpec
+
+[]GameServerSelector
|
- - -
GameServerAllocationState
+(
+ |
Field | +Description | +
---|---|
-health
+state
-
-Health
+
+GameServerAllocationState
|
- Health configures health checking +GameServerState is the current state of an GameServerAllocation, e.g. Allocated, or UnAllocated |
-scheduling
+gameServerName
-agones.dev/agones/pkg/apis.SchedulingStrategy
+string
|
- Scheduling strategy. Defaults to “Packed” |
-sdkServer
+ports
-
-SdkServer
+
+[]GameServerStatusPort
|
- SdkServer specifies parameters for the Agones SDK Server sidecar container |
-template
+address
-
-Kubernetes core/v1.PodTemplateSpec
-
+string
|
- Template describes the Pod that will be created for the GameServer |
-players
+nodeName
-
-PlayersSpec
-
+string
|
-(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. - |
-
status
+source
-
-GameServerStatus
-
+string
If the allocation is from a remote cluster, Source is the endpoint of the remote agones-allocator. +Otherwise, Source is “local”
-
GameServerSet is the data structure for a set of GameServers. -This matches philosophically with the relationship between -Deployments and ReplicaSets
+(Appears on: +GameServerAllocationSpec) + ++
GameServerSelector contains all the filter options for selecting +a GameServer for allocation.
-apiVersion
-string |
-
-
-agones.dev/v1
-
+LabelSelector
+
+
+Kubernetes meta/v1.LabelSelector
+
+
|
-
-kind
-string
+
+(Members of See: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
-GameServerSet |
-metadata
+gameServerState
-
-Kubernetes meta/v1.ObjectMeta
+
+GameServerState
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+(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. |
-spec
+players
-
-GameServerSetSpec
+
+PlayerSelector
|
- - +(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. + |
+
+(Appears on: +GameServerAllocationSpec) +
++
MetaPatch is the metadata used to patch the GameServer metadata on allocation
+Field | +Description | +
---|---|
-replicas
+labels
-int32
+map[string]string
|
- Replicas are the number of GameServers that should be in this set |
-scheduling
+annotations
-agones.dev/agones/pkg/apis.SchedulingStrategy
+map[string]string
|
- Scheduling strategy. Defaults to “Packed”. |
+(Appears on: +GameServerAllocationSpec) +
++
MultiClusterSetting specifies settings for multi-cluster allocation.
+ +Field | +Description | +
---|---|
-template
+enabled
-
-GameServerTemplateSpec
-
+bool
|
- Template the GameServer template to apply for this GameServerSet - |
-
status
+policySelector
-
-GameServerSetStatus
+
+Kubernetes meta/v1.LabelSelector
(Appears on: -FleetStatus, -GameServerSetStatus) +GameServerSelector)
-
AggregatedPlayerStatus stores total player tracking values
+PlayerSelector is the filter options for a GameServer based on player counts
-count
+minAvailable
int64
@@ -2020,7 +2116,7 @@ AggregatedPlayerStatus |
-capacity
+maxAvailable
int64
@@ -2030,14 +2126,19 @@ AggregatedPlayerStatus |
-(Appears on: -Fleet) +
Package v1 is the v1 version of the API.
+Resource Types: + +-
FleetSpec is the spec for a Fleet
+FleetAutoscaler is the data structure for a FleetAutoscaler resource
-replicas
+apiVersion
+string |
+
+
+autoscaling.agones.dev/v1
+
+ |
+||||||
+kind
+string
+ |
+FleetAutoscaler |
+||||||
+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.
|
||||||
-strategy
+spec
-
-Kubernetes apps/v1.DeploymentStrategy
+
+FleetAutoscalerSpec
|
- Deployment strategy ++ +
|
+||||||
+status
+
+
+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: +FleetAutoscalerSync) +
++
FixedIntervalSync controls the desired behavior of the fixed interval based sync.
+ +
-allocatedReplicas
-
-int32
-
- |
-
- AllocatedReplicas are the number of Allocated GameServer replicas - |
+Field | +Description |
---|---|---|---|
-players
+seconds
-
-AggregatedPlayerStatus
-
+int32
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] -Players are the current total player capacity and count for this Fleet +Seconds defines how often we run fleet autoscaling in seconds |
(Appears on: -GameServerSpec) +FleetAutoscaleReview)
-
GameServerPort defines a set of Ports that -are to be exposed via the GameServer
+FleetAutoscaleRequest defines the request to webhook autoscaler endpoint
-name
+uid
-string
+k8s.io/apimachinery/pkg/types.UID
|
- Name is the descriptive name of the port - |
-
-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 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. |
-container
+name
string
|
-(Optional)
- Container is the name of the container on which to open the port. Defaults to the game server container. - |
-
-containerPort
-
-int32
-
- |
-
- 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
+uid
-int32
+k8s.io/apimachinery/pkg/types.UID
|
- Replicas are the number of GameServers that should be in this set +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. |
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 |
string
alias)-(Appears on: -GameServerSelector, -GameServerStatus) -
--
GameServerState is the state for the GameServer
- -scalingLimited
+
+bool
+
+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: -GameServer) +FleetAutoscalerSpec)
-
GameServerStatus is the status for a GameServer resource
+FleetAutoscalerSync describes when to sync a fleet
-state
+type
-
-GameServerState
+
+FleetAutoscalerSyncType
|
- GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc +Type of autoscaling sync. |
-ports
+fixedInterval
-
-[]GameServerStatusPort
+
+FixedIntervalSync
|
+(Optional)
+ FixedInterval config params. Present only if FleetAutoscalerSyncType = FixedInterval. |
string
alias)+(Appears on: +FleetAutoscalerSync) +
++
FleetAutoscalerSyncType is the sync strategy for a given Fleet
+ ++(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
+ +
-address
-
-string
-
- |
-- | +Field | +Description |
---|---|---|---|
-nodeName
+url
string
|
+(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. |
||
-reservedUntil
+service
-
-Kubernetes meta/v1.Time
+
+Kubernetes admissionregistration/v1.ServiceReference
|
+(Optional)
+
If the webhook is running within the cluster, then you should use |
||
-players
+caBundle
-
-PlayerStatus
-
+[]byte
|
(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] +
|
-(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
-
+
Kubernetes meta/v1.ObjectMeta
@@ -2704,8 +2904,8 @@ GameServerTemplateSpec
spec
-
-GameServerSpec
+
+GameServerAllocationPolicySpec
|
+
+(Appears on: +GameServerAllocationPolicySpec) +
++
ClusterConnectionInfo defines the connection information for a cluster
+ +Field | +Description | +
---|---|
-scheduling
+clusterName
-agones.dev/agones/pkg/apis.SchedulingStrategy
+string
|
- Scheduling strategy. Defaults to “Packed” +Optional: the name of the targeted cluster |
-sdkServer
+allocationEndpoints
-
-SdkServer
-
+[]string
|
- SdkServer specifies parameters for the Agones SDK Server sidecar container +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 |
-template
+secretName
-
-Kubernetes core/v1.PodTemplateSpec
-
+string
|
- Template describes the Pod that will be created for the GameServer +The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster |
-players
+namespace
-
-PlayersSpec
-
+string
|
-(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. - |
-
-(Appears on: -GameServerSpec) -
--
Health configures health checking on the GameServer
- -Field | -Description | -
---|---|
-disabled
-
-bool
-
- |
-
- Disabled is whether health checking is disabled or not - |
-
-periodSeconds
-
-int32
-
- |
-
- PeriodSeconds is the number of seconds each health ping has to occur in - |
-
-failureThreshold
-
-int32
-
- |
-
- FailureThreshold how many failures in a row constitutes unhealthy +The cluster namespace from which to allocate gameservers |
-initialDelaySeconds
+serverCa
-int32
+[]byte
|
- InitialDelaySeconds initial delay before checking health +The PEM encoded server CA, used by the allocator client to authenticate the remote server. |
-(Appears on: -GameServerStatus) -
--
PlayerStatus stores the current player capacity values
+ConnectionInfoIterator an iterator on ClusterConnectionInfo
-count
+currPriority
-int64
+int
|
+ currPriority Current priority index from the orderedPriorities |
-capacity
+orderedPriorities
-int64
+[]int32
|
+ orderedPriorities list of ordered priorities |
-ids
+priorityToCluster
-[]string
+map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
|
+ priorityToCluster Map of priority to cluster-policies map |
-(Appears on: -GameServerSpec) -
--
PlayersSpec tracks the initial player capacity
- -Field | -Description | -
---|---|
-initialCapacity
+clusterBlackList
-int64
+map[string]bool
|
+ clusterBlackList the cluster blacklist for the clusters that has already returned |
string
alias)-(Appears on: -GameServerPort) -
--
PortPolicy is the port policy for the GameServer
- -(Appears on: -GameServerSpec) +GameServerAllocationPolicy)
-
SdkServer specifies parameters for the Agones SDK Server sidecar container
+GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
-logLevel
+priority
-
-SdkServerLogLevel
-
+int32
|
- LogLevel for SDK server (sidecar) logs. Defaults to “Info” |
-grpcPort
+weight
-int32
+int
|
- GRPCPort is the port on which the SDK Server binds the gRPC server to accept incoming connections |
-httpPort
+connectionInfo
-int32
+
+ClusterConnectionInfo
+
|
- 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
.
Packages:
Package v1 is the v1 version of the API.
Resource Types: --
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
|
@@ -3081,7 +3194,7 @@ Fleet |
+GameServerAllocation |
||||||||||
@@ -3101,8 +3214,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.
+
GameServerAllocationSpec is the spec for a GameServerAllocation
-apiVersion
-string |
-
-
-agones.dev/v1
-
+multiClusterSetting
+
+
+MultiClusterSetting
+
+
|
-||||||||||||||||||
-kind
-string
+MultiClusterPolicySelector if specified, multi-cluster policies are applied. +Otherwise, allocation will happen locally. |
-GameServer |
||||||||||||||||||
-metadata
+required
-
-Kubernetes meta/v1.ObjectMeta
+
+GameServerSelector
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+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. |
||||||||||||||||||
-spec
+preferred
-
-GameServerSpec
+
+[]GameServerSelector
|
- - -
GameServerAllocationState
+(
+ |
Field | +Description | +
---|---|
-scheduling
+state
-agones.dev/agones/pkg/apis.SchedulingStrategy
+
+GameServerAllocationState
+
|
- Scheduling strategy. Defaults to “Packed” +GameServerState is the current state of an GameServerAllocation, e.g. Allocated, or UnAllocated |
-sdkServer
+gameServerName
-
-SdkServer
-
+string
|
- SdkServer specifies parameters for the Agones SDK Server sidecar container |
-template
+ports
-
-Kubernetes core/v1.PodTemplateSpec
+
+[]GameServerStatusPort
|
- Template describes the Pod that will be created for the GameServer |
-players
+address
-
-PlayersSpec
-
+string
|
-(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. |
-eviction
+nodeName
-
-Eviction
-
+string
|
-(Optional)
- (Alpha, SafeToEvict feature flag) Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. - |
-
status
+source
-
-GameServerStatus
-
+string
If the allocation is from a remote cluster, Source is the endpoint of the remote agones-allocator. +Otherwise, Source is “local”
-
GameServerSet is the data structure for a set of GameServers. -This matches philosophically with the relationship between -Deployments and ReplicaSets
+(Appears on: +GameServerAllocationSpec) + ++
GameServerSelector contains all the filter options for selecting +a GameServer for allocation.
-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.
- |
-||||||
-spec
+LabelSelector
-
-GameServerSetSpec
+
+Kubernetes meta/v1.LabelSelector
|
- - -
[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. |
||||||
-status
+players
-
-GameServerSetStatus
+
+PlayerSelector
|
+(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. |
(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
|
@@ -3497,9 +3630,9 @@ AggregatedPlayerStatus |
-capacity
+annotations
-int64
+map[string]string
|
@@ -3507,15 +3640,14 @@ AggregatedPlayerStatus |
(Appears on: -GameServerSpec, -GameServerStatus) +GameServerAllocationSpec)
-
Eviction specifies the eviction tolerance of the GameServer
+MultiClusterSetting specifies settings for multi-cluster allocation.
-safe
+enabled
-
-EvictionSafe
+bool
+
+ |
++ | +
+policySelector
+
+
+Kubernetes meta/v1.LabelSelector
|
- (Alpha, SafeToEvict feature flag) -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: -Eviction) -
--
EvictionSafe specified whether the game server supports termination via SIGTERM
- -(Appears on: -Fleet) +GameServerSelector)
-
FleetSpec is the spec for a Fleet
+PlayerSelector is the filter options for a GameServer based on player counts
-replicas
-
-int32
-
- |
-
- Replicas are the number of GameServers that should be in this set. Defaults to 0. - |
-
-strategy
-
-
-Kubernetes apps/v1.DeploymentStrategy
-
-
- |
-
- Deployment strategy - |
-
-scheduling
+minAvailable
-agones.dev/agones/pkg/apis.SchedulingStrategy
+int64
|
- Scheduling strategy. Defaults to “Packed”. |
-template
+maxAvailable
-
-GameServerTemplateSpec
-
+int64
|
- Template the GameServer template to apply for this Fleet |
-(Appears on: -Fleet, -FleetAutoscaleRequest) +
Package v1 is the v1 version of the API.
+Resource Types: + +-
FleetStatus is the status of a Fleet
+FleetAutoscaler is the data structure for a FleetAutoscaler resource
-replicas
+apiVersion
+string |
+
+
+autoscaling.agones.dev/v1
+
+ |
+||||||
+kind
+string
+ |
+FleetAutoscaler |
+||||||
+metadata
-int32
+
+Kubernetes meta/v1.ObjectMeta
+
|
- Replicas the total number of current GameServer replicas +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
||||||
-readyReplicas
+spec
+
+
+FleetAutoscalerSpec
+
+
+ |
+
+ + +
|
||||||
-players
+status
-
-AggregatedPlayerStatus
+
+FleetAutoscalerStatus
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] -Players are the current total player capacity and count for this Fleet |
(Appears on: -GameServerSpec) +FleetAutoscalerPolicy)
-
GameServerPort defines a set of Ports that -are to be exposed via the GameServer
+BufferPolicy controls the desired behavior of the buffer policy.
-name
+maxReplicas
-string
+int32
|
- Name is the descriptive name of the port +MaxReplicas is the maximum amount of replicas that the fleet may have. +It must be bigger than both MinReplicas and BufferSize |
-portPolicy
+minReplicas
-
-PortPolicy
-
+int32
|
- 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 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 |
-container
+bufferSize
-string
+k8s.io/apimachinery/pkg/util/intstr.IntOrString
|
-(Optional)
- Container is the name of the container on which to open the port. Defaults to the game server container. +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: +FleetAutoscalerSync) +
++
FixedIntervalSync controls the desired behavior of the fixed interval based sync.
+ +
-containerPort
-
-int32
-
- |
-
- ContainerPort is the port that is being opened on the specified container’s process - |
+Field | +Description |
---|---|---|---|
-hostPort
+seconds
int32
|
- HostPort the port exposed on the host for clients to connect to - |
-||
-protocol
-
-
-Kubernetes core/v1.Protocol
-
-
- |
-
- Protocol is the network protocol being used. Defaults to UDP. TCP and TCPUDP are other options. +Seconds defines how often we run fleet autoscaling in seconds |
(Appears on: -GameServerSet) +FleetAutoscaleReview)
-
GameServerSetSpec the specification for GameServerSet
+FleetAutoscaleRequest defines the request to webhook autoscaler endpoint
-replicas
+uid
-int32
+k8s.io/apimachinery/pkg/types.UID
|
- Replicas are the number of GameServers that should be in this set +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. |
-scheduling
+name
-agones.dev/agones/pkg/apis.SchedulingStrategy
+string
|
- Scheduling strategy. Defaults to “Packed”. +Name is the name of the Fleet being scaled |
-template
+namespace
-
-GameServerTemplateSpec
+string
+
+ |
+
+ Namespace is the namespace associated with the request (if any). + |
+
+status
+
+
+FleetStatus
|
- Template the GameServer template to apply for this GameServerSet +The Fleet’s status values |
(Appears on: -GameServerSet) +FleetAutoscaleReview)
-
GameServerSetStatus is the status of a GameServerSet
+FleetAutoscaleResponse defines the response of webhook autoscaler endpoint
-replicas
+uid
-int32
+k8s.io/apimachinery/pkg/types.UID
|
- Replicas is the total number of current GameServer replicas +UID is an identifier for the individual request/response. +This should be copied over from the corresponding FleetAutoscaleRequest. |
-readyReplicas
+scale
-int32
+bool
|
- ReadyReplicas is the number of Ready GameServer replicas +Set to false if no scaling should occur to the Fleet |
-reservedReplicas
+replicas
int32
|
- ReservedReplicas is the number of Reserved GameServer replicas +The targeted replica count |
+
FleetAutoscaleReview is passed to the webhook with a populated Request value, +and then returned with a populated Response.
+ +
-allocatedReplicas
-
-int32
-
- |
-
- AllocatedReplicas is the number of Allocated GameServer replicas - |
+Field | +Description |
---|---|---|---|
-shutdownReplicas
+request
-int32
+
+FleetAutoscaleRequest
+
|
- ShutdownReplicas is the number of Shutdown GameServers replicas |
||
-players
+response
-
-AggregatedPlayerStatus
+
+FleetAutoscaleResponse
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] -Players is the current total player capacity and count for this GameServerSet |
(Appears on: -GameServer, -GameServerTemplateSpec) -
--
GameServerSpec is the spec for a GameServer resource
+FleetAutoscalerSpec) -Field | -Description | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-container
-
-string
-
- |
-
- Container specifies which Pod container is the game server. Only required if there is more than one -container defined - |
+
Field | +Description |
---|---|
-ports
+type
-
-[]GameServerPort
+
+FleetAutoscalerPolicyType
|
- Ports are the array of ports that can be exposed via the game server +Type of autoscaling policy. |
-health
+buffer
-
-Health
+
+BufferPolicy
|
- Health configures health checking +(Optional) +Buffer policy config params. Present only if FleetAutoscalerPolicyType = Buffer. |
-scheduling
+webhook
-agones.dev/agones/pkg/apis.SchedulingStrategy
+
+WebhookPolicy
+
|
- Scheduling strategy. Defaults to “Packed” +(Optional) +Webhook policy config params. Present only if FleetAutoscalerPolicyType = Webhook. |
string
alias)+(Appears on: +FleetAutoscalerPolicy) +
++
FleetAutoscalerPolicyType is the policy for autoscaling +for a given Fleet
+ ++(Appears on: +FleetAutoscaler) +
++
FleetAutoscalerSpec is the spec for a Fleet Scaler
+ +
-sdkServer
-
-
-SdkServer
-
-
- |
-
- SdkServer specifies parameters for the Agones SDK Server sidecar container - |
+Field | +Description |
---|---|---|---|
-template
+fleetName
-
-Kubernetes core/v1.PodTemplateSpec
-
+string
|
- Template describes the Pod that will be created for the GameServer |
||
-players
+policy
-
-PlayersSpec
+
+FleetAutoscalerPolicy
|
-(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. +Autoscaling policy |
||
-eviction
+sync
-
-Eviction
+
+FleetAutoscalerSync
|
(Optional)
- (Alpha, SafeToEvict feature flag) Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. +[Stage:Beta] +[FeatureFlag:CustomFasSyncInterval] +Sync defines when FleetAutoscalers runs autoscaling |
string
alias)-(Appears on: -GameServerSelector, -GameServerStatus) -
--
GameServerState is the state for the GameServer
- -(Appears on: -GameServer) +FleetAutoscaler)
-
GameServerStatus is the status for a GameServer resource
+FleetAutoscalerStatus defines the current status of a FleetAutoscaler
-state
+currentReplicas
-
-GameServerState
-
+int32
|
- GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc +CurrentReplicas is the current number of gameserver replicas +of the fleet managed by this autoscaler, as last seen by the autoscaler |
-ports
+desiredReplicas
-
-[]GameServerStatusPort
-
+int32
|
+ DesiredReplicas is the desired number of gameserver replicas +of the fleet managed by this autoscaler, as last calculated by the autoscaler |
-address
+lastScaleTime
-string
+
+Kubernetes meta/v1.Time
+
|
+(Optional)
+ lastScaleTime is the last time the FleetAutoscaler scaled the attached fleet, |
-nodeName
+ableToScale
-string
+bool
|
+ AbleToScale indicates that we can access the target fleet |
-reservedUntil
+scalingLimited
-
-Kubernetes meta/v1.Time
-
+bool
|
+ 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 | +
---|---|
-players
+type
-
-PlayerStatus
+
+FleetAutoscalerSyncType
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] +Type of autoscaling sync. |
-eviction
+fixedInterval
-
-Eviction
+
+FixedIntervalSync
|
- (Alpha, SafeToEvict feature flag) Eviction specifies the eviction tolerance of the GameServer. +(Optional) +FixedInterval config params. Present only if FleetAutoscalerSyncType = FixedInterval. |
string
alias)+(Appears on: +FleetAutoscalerSync) +
++
FleetAutoscalerSyncType is the sync strategy for a given Fleet
+ +(Appears on: -GameServerAllocationStatus, -GameServerStatus) +FleetAutoscalerPolicy)
-
GameServerStatusPort shows the port that was allocated to a -GameServer.
+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
-name
+url
string
|
+(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. + |
+
+service
+
+
+Kubernetes admissionregistration/v1.ServiceReference
+
+
+ |
+
+(Optional)
+
If the webhook is running within the cluster, then you should use |
-port
+caBundle
-int32
+[]byte
|
+(Optional)
+
|
-(Appears on: -FleetSpec, -GameServerSetSpec) +
Package v1 is the v1 version of the API.
+Resource Types: + +-
GameServerTemplateSpec is a template for GameServers
+GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API
+apiVersion
+string |
+
+
+multicluster.agones.dev/v1
+
+ |
+||||||
+kind
+string
+ |
+GameServerAllocationPolicy |
+||||||
metadata
@@ -4254,8 +4498,8 @@ GameServerTemplateSpec
spec
-
-GameServerSpec
+
+GameServerAllocationPolicySpec
|
+
+(Appears on: +GameServerAllocationPolicySpec) +
++
ClusterConnectionInfo defines the connection information for a cluster
+ +Field | +Description | +
---|---|
-scheduling
+clusterName
-agones.dev/agones/pkg/apis.SchedulingStrategy
+string
|
- Scheduling strategy. Defaults to “Packed” +Optional: the name of the targeted cluster |
-sdkServer
+allocationEndpoints
-
-SdkServer
-
+[]string
|
- SdkServer specifies parameters for the Agones SDK Server sidecar container +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 |
-template
+secretName
-
-Kubernetes core/v1.PodTemplateSpec
-
+string
|
- Template describes the Pod that will be created for the GameServer +The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster |
-players
+namespace
-
-PlayersSpec
-
+string
|
-(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. +The cluster namespace from which to allocate gameservers |
-eviction
+serverCa
-
-Eviction
-
+[]byte
|
-(Optional)
- (Alpha, SafeToEvict feature flag) 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: -GameServerStatus) +GameServerAllocationPolicy)
-
PlayerStatus stores the current player capacity values
+GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
-count
+priority
-int64
+int32
|
@@ -4463,9 +4708,9 @@ PlayerStatus |
-capacity
+weight
-int64
+int
|
@@ -4473,9 +4718,11 @@ PlayerStatus |
-ids
+connectionInfo
-[]string
+
+ClusterConnectionInfo
+
|
@@ -4483,14 +4730,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.
+ |
+||||||||||
+spec
+
+
+FleetSpec
+
+
+ |
+
+ + +
PortPolicy
-(
- |
Field | -Description | -
---|---|
-logLevel
+scheduling
-
-SdkServerLogLevel
-
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- LogLevel for SDK server (sidecar) logs. Defaults to “Info” +Scheduling strategy. Defaults to “Packed”. |
-grpcPort
+template
-int32
+
+GameServerTemplateSpec
+
|
- GRPCPort is the port on which the SDK Server binds the gRPC server to accept incoming connections +Template the GameServer template to apply for this Fleet + |
+
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
|
@@ -4622,7 +4897,7 @@ GameServerAllocation |
+GameServer |
||||||||||||||||||||
@@ -4642,8 +4917,8 @@ GameServerAllocation
spec
-
-GameServerAllocationSpec
+
+GameServerSpec
GameServerAllocation
status
-
-GameServerAllocationStatus
+
+GameServerStatus
|
-(Appears on: -GameServerAllocation) -
--
GameServerAllocationSpec is the spec for a GameServerAllocation
+GameServerSet is the data structure for a set of GameServers. +This matches philosophically with the relationship between +Deployments and ReplicaSets
-multiClusterSetting
-
-
-MultiClusterSetting
-
-
+apiVersion
+string |
+
+
+agones.dev/v1
+
|
+||||||
- MultiClusterPolicySelector if specified, multi-cluster policies are applied. -Otherwise, allocation will happen locally. +kind
+string
|
+GameServerSet |
||||||
-required
+metadata
-
-GameServerSelector
+
+Kubernetes meta/v1.ObjectMeta
|
- 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. +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
||||||
-preferred
+spec
-
-[]GameServerSelector
+
+GameServerSetSpec
|
- 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 + +
|
||||||
-metadata
+status
-
-MetaPatch
+
+GameServerSetStatus
|
- 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 |
string
alias)-(Appears on: -GameServerAllocationStatus) -
--
GameServerAllocationState is the Allocation state
- -(Appears on: -GameServerAllocation) +FleetStatus, +GameServerSetStatus)
-
GameServerAllocationStatus is the status for an GameServerAllocation resource
+AggregatedPlayerStatus stores total player tracking values
-state
-
-
-GameServerAllocationState
-
-
- |
-
- GameServerState is the current state of an GameServerAllocation, e.g. Allocated, or UnAllocated - |
-
-gameServerName
+count
-string
+int64
|
@@ -4914,31 +5213,34 @@ GameServerAllocatio |
-ports
+capacity
-
-[]GameServerStatusPort
-
+int64
|
+
CounterSpec tracks if counter specified (for giving error message if feature gate not set)
+ +
-address
-
-string
-
- |
-- | +Field | +Description |
---|---|---|---|
-nodeName
+count
-string
+int64
|
@@ -4946,27 +5248,25 @@ GameServerAllocatio | ||
-source
+capacity
-string
+int64
|
- If the allocation is from a remote cluster, Source is the endpoint of the remote agones-allocator. -Otherwise, Source is “local” |
(Appears on: -GameServerAllocationSpec) +GameServerSpec, +GameServerStatus)
-
GameServerSelector contains all the filter options for selecting -a GameServer for allocation.
+Eviction specifies the eviction tolerance of the GameServer
-LabelSelector
+safe
-
-Kubernetes meta/v1.LabelSelector
+
+EvictionSafe
|
+ (Alpha, SafeToEvict feature flag) +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)
-(Members of LabelSelector
are embedded into this type.)
+(Appears on:
+Eviction)
See: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
- ++
EvictionSafe specified whether the game server supports termination via SIGTERM
+ ++(Appears on: +Fleet) +
++
FleetSpec is the spec for a Fleet
+ +Field | +Description |
---|---|
-gameServerState
+replicas
-
-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. +Replicas are the number of GameServers that should be in this set. Defaults to 0. |
-players
+strategy
-
-PlayerSelector
+
+Kubernetes apps/v1.DeploymentStrategy
|
-(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. +Deployment strategy |
-(Appears on: -GameServerAllocationSpec) -
--
MetaPatch is the metadata used to patch the GameServer metadata on allocation
- -Field | -Description | -
---|---|
-labels
+scheduling
-map[string]string
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
+ Scheduling strategy. Defaults to “Packed”. |
-annotations
+template
-map[string]string
+
+GameServerTemplateSpec
+
|
+ Template the GameServer template to apply for this Fleet |
(Appears on: -GameServerAllocationSpec) +Fleet, +FleetAutoscaleRequest)
-
MultiClusterSetting specifies settings for multi-cluster allocation.
+FleetStatus is the status of a Fleet
-enabled
+replicas
-bool
+int32
|
+ Replicas the total number of current GameServer replicas |
-policySelector
+readyReplicas
-
-Kubernetes meta/v1.LabelSelector
-
+int32
|
+ ReadyReplicas are the number of Ready GameServer replicas |
-(Appears on: -GameServerSelector) -
--
PlayerSelector is the filter options for a GameServer based on player counts
- -Field | -Description | +
+reservedReplicas
+
+int32
+
+ |
+
+ 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. + |
---|---|---|---|
-minAvailable
+allocatedReplicas
-int64
+int32
|
+ AllocatedReplicas are the number of Allocated GameServer replicas |
||
-maxAvailable
+players
-int64
+
+AggregatedPlayerStatus
+
|
+(Optional)
+ [Stage:Alpha] +[FeatureFlag:PlayerTracking] +Players are the current total player capacity and count for this Fleet |
-
Package v1 is the v1 version of the API.
+(Appears on: +GameServerSpec) -Resource Types: - --
FleetAutoscaler is the data structure for a FleetAutoscaler resource
+GameServerPort defines a set of Ports that +are to be exposed via the GameServer
-apiVersion
-string |
-
-
-autoscaling.agones.dev/v1
-
- |
-||||||
-kind
-string
- |
-FleetAutoscaler |
-||||||
-metadata
+name
-
-Kubernetes meta/v1.ObjectMeta
-
+string
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+Name is the descriptive name of the port |
||||||
-spec
+portPolicy
-
-FleetAutoscalerSpec
+
+PortPolicy
|
- - -
HostPort the port exposed on the host for clients to connect to |
||||||
-status
+protocol
-
-FleetAutoscalerStatus
+
+Kubernetes core/v1.Protocol
|
+ Protocol is the network protocol being used. Defaults to UDP. TCP and TCPUDP are other options. |
(Appears on: -FleetAutoscalerPolicy) +GameServerSet)
-
BufferPolicy controls the desired behavior of the buffer policy.
+GameServerSetSpec the specification for GameServerSet
-maxReplicas
+replicas
int32
|
- MaxReplicas is the maximum amount of replicas that the fleet may have. -It must be bigger than both MinReplicas and BufferSize +Replicas are the number of GameServers that should be in this set |
-minReplicas
+scheduling
-int32
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- 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 +Scheduling strategy. Defaults to “Packed”. |
-bufferSize
+template
-k8s.io/apimachinery/pkg/util/intstr.IntOrString
+
+GameServerTemplateSpec
+
|
- 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) +Template the GameServer template to apply for this GameServerSet |
(Appears on: -FleetAutoscalerSync) +GameServerSet)
-
FixedIntervalSync controls the desired behavior of the fixed interval based sync.
+GameServerSetStatus is the status of a GameServerSet
-seconds
+replicas
int32
|
- Seconds defines how often we run fleet autoscaling in seconds +Replicas is the total number of current GameServer replicas |
-(Appears on: -FleetAutoscaleReview) -
--
FleetAutoscaleRequest defines the request to webhook autoscaler endpoint
- -Field | -Description | +
+readyReplicas
+
+int32
+
+ |
+
+ ReadyReplicas is the number of Ready GameServer replicas + |
---|---|---|---|
-uid
+reservedReplicas
-k8s.io/apimachinery/pkg/types.UID
+int32
|
- 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. +ReservedReplicas is the number of Reserved GameServer replicas |
||
-name
+allocatedReplicas
-string
+int32
|
- Name is the name of the Fleet being scaled +AllocatedReplicas is the number of Allocated GameServer replicas |
||
-namespace
+shutdownReplicas
-string
+int32
|
- Namespace is the namespace associated with the request (if any). +ShutdownReplicas is the number of Shutdown GameServers replicas |
||
-status
+players
-
-FleetStatus
+
+AggregatedPlayerStatus
|
- The Fleet’s status values +(Optional) +[Stage:Alpha] +[FeatureFlag:PlayerTracking] +Players is the current total player capacity and count for this GameServerSet |
(Appears on: -FleetAutoscaleReview) +GameServer, +GameServerTemplateSpec)
-
FleetAutoscaleResponse defines the response of webhook autoscaler endpoint
+GameServerSpec is the spec for a GameServer resource
-uid
+container
-k8s.io/apimachinery/pkg/types.UID
+string
|
- UID is an identifier for the individual request/response. -This should be copied over from the corresponding FleetAutoscaleRequest. +Container specifies which Pod container is the game server. Only required if there is more than one +container defined |
-scale
+ports
-bool
+
+[]GameServerPort
+
|
- Set to false if no scaling should occur to the Fleet +Ports are the array of ports that can be exposed via the game server |
-replicas
+health
-int32
+
+Health
+
|
- The targeted replica count +Health configures health checking |
-
FleetAutoscaleReview is passed to the webhook with a populated Request value, -and then returned with a populated Response.
- -Field | -Description | +
+scheduling
+
+agones.dev/agones/pkg/apis.SchedulingStrategy
+
+ |
+
+ Scheduling strategy. Defaults to “Packed” + |
---|---|---|---|
-request
+sdkServer
-
-FleetAutoscaleRequest
+
+SdkServer
|
+ SdkServer specifies parameters for the Agones SDK Server sidecar container |
||
-response
+template
-
-FleetAutoscaleResponse
+
+Kubernetes core/v1.PodTemplateSpec
|
+ Template describes the Pod that will be created for the GameServer |
-(Appears on: -FleetAutoscalerSpec) -
--
FleetAutoscalerPolicy describes how to scale a fleet
- -Field | -Description | +
+players
+
+
+PlayersSpec
+
+
+ |
+
+(Optional)
+ (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. + |
---|---|---|---|
-type
+counters
-
-FleetAutoscalerPolicyType
+
+map[string]*agones.dev/agones/pkg/apis/agones/v1.CounterSpec
|
- Type of autoscaling policy. +(Optional) +(Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. |
||
-buffer
+lists
-
-BufferPolicy
+
+map[string]*agones.dev/agones/pkg/apis/agones/v1.ListSpec
|
-(Optional)
- Buffer policy config params. Present only if FleetAutoscalerPolicyType = Buffer. |
||
-webhook
+eviction
-
-WebhookPolicy
+
+Eviction
|
(Optional)
- Webhook policy config params. Present only if FleetAutoscalerPolicyType = Webhook. +(Alpha, SafeToEvict feature flag) Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. |
string
alias)(Appears on: -FleetAutoscalerPolicy) +GameServerSelector, +GameServerStatus)
-
FleetAutoscalerPolicyType is the policy for autoscaling -for a given Fleet
+GameServerState is the state for the GameServer
-(Appears on: -FleetAutoscaler) +GameServer)
-
FleetAutoscalerSpec is the spec for a Fleet Scaler
+GameServerStatus is the status for a GameServer resource
-fleetName
-
-string
-
- |
-- | -
-policy
+state
-
-FleetAutoscalerPolicy
+
+GameServerState
|
- Autoscaling policy +GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc |
-sync
+ports
-
-FleetAutoscalerSync
+
+[]GameServerStatusPort
|
-(Optional)
- [Stage:Beta] -[FeatureFlag:CustomFasSyncInterval] -Sync defines when FleetAutoscalers runs autoscaling |
-(Appears on: -FleetAutoscaler) -
--
FleetAutoscalerStatus defines the current status of a FleetAutoscaler
- -Field | -Description | -
---|---|
-currentReplicas
+address
-int32
+string
|
- CurrentReplicas is the current number of gameserver replicas -of the fleet managed by this autoscaler, as last seen by the autoscaler |
-desiredReplicas
+nodeName
-int32
+string
|
- DesiredReplicas is the desired number of gameserver replicas -of the fleet managed by this autoscaler, as last calculated by the autoscaler |
-lastScaleTime
+reservedUntil
Kubernetes meta/v1.Time
@@ -5704,43 +5922,48 @@ FleetAutoscalerStatus |
-(Optional)
- lastScaleTime is the last time the FleetAutoscaler scaled the attached fleet, |
-ableToScale
+players
-bool
+
+PlayerStatus
+
|
- AbleToScale indicates that we can access the target fleet +(Optional) +[Stage:Alpha] +[FeatureFlag:PlayerTracking] |
-scalingLimited
+eviction
-bool
+
+Eviction
+
|
- ScalingLimited indicates that the calculated scale would be above or below the range -defined by MinReplicas and MaxReplicas, and has thus been capped. +(Alpha, SafeToEvict feature flag) Eviction specifies the eviction tolerance of the GameServer. |
(Appears on: -FleetAutoscalerSpec) +GameServerAllocationStatus, +GameServerStatus)
-
FleetAutoscalerSync describes when to sync a fleet
+GameServerStatusPort shows the port that was allocated to a +GameServer.
-type
+name
-
-FleetAutoscalerSyncType
-
+string
|
- Type of autoscaling sync. |
-fixedInterval
+port
-
-FixedIntervalSync
-
+int32
|
-(Optional)
- FixedInterval config params. Present only if FleetAutoscalerSyncType = FixedInterval. |
string
alias)-(Appears on: -FleetAutoscalerSync) -
--
FleetAutoscalerSyncType is the sync strategy for a given Fleet
- -(Appears on: -FleetAutoscalerPolicy) +FleetSpec, +GameServerSetSpec)
-
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
+GameServerTemplateSpec is a template for GameServers
-url
+metadata
+
+
+Kubernetes meta/v1.ObjectMeta
+
+
+ |
+
+Refer to the Kubernetes API documentation for the fields of the
+metadata field.
+ |
+|||||||||||||||||||||||||||||||||||||||||||||||||||||
+spec
+
+
+GameServerSpec
+
+
+ |
+
+ + +
- multicluster.agones.dev/v1-- Package v1 is the v1 version of the API. - -Resource Types: - -GameServerAllocationPolicy --- GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API - -
ClusterConnectionInfo
+ |
-clusterName
+disabled
-string
+bool
|
- Optional: the name of the targeted cluster +Disabled is whether health checking is disabled or not |
-allocationEndpoints
+periodSeconds
-[]string
+int32
|
- 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 +PeriodSeconds is the number of seconds each health ping has to occur in |
-secretName
+failureThreshold
-string
+int32
|
- The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster +FailureThreshold how many failures in a row constitutes unhealthy |
-namespace
+initialDelaySeconds
-string
+int32
|
- The cluster namespace from which to allocate gameservers +InitialDelaySeconds initial delay before checking health |
+
ListSpec tracks the list capacity
+ +Field | +Description | +
---|---|
-serverCa
+capacity
-[]byte
+int64
+
+ |
++ | +
+values
+
+[]string
|
- The PEM encoded server CA, used by the allocator client to authenticate the remote server. |
-
ConnectionInfoIterator an iterator on ClusterConnectionInfo
+(Appears on: +GameServerStatus) + ++
PlayerStatus stores the current player capacity values
-currPriority
+count
-int
+int64
|
- currPriority Current priority index from the orderedPriorities |
-orderedPriorities
+capacity
-[]int32
+int64
|
- orderedPriorities list of ordered priorities |
-priorityToCluster
+ids
-map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
+[]string
|
- priorityToCluster Map of priority to cluster-policies map |
+(Appears on: +GameServerSpec) +
++
PlayersSpec tracks the initial player capacity
+ +Field | +Description | +
---|---|
-clusterBlackList
+initialCapacity
-map[string]bool
+int64
|
- clusterBlackList the cluster blacklist for the clusters that has already returned |
string
alias)+(Appears on: +GameServerPort) +
++
PortPolicy is the port policy for the GameServer
+ +(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
.