This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added optional provisionConstraints on instance provisioning (#9211)
Added a new query param 'provisionConstraints' to the instance-provision service. provisionConstraints is and object where fields on agones pod can be specified to limit which pods will be used for that provision. It is of the form { <path.of.field>: { <comparator>: 'value' } } e.g. { 'metadata.labels.maxCCU': { lte: '40' } } to limit the provision to pods where metadata.labels.maxCCU is less than or equal to 40. The sub-field selector must be passed as a dot-separated string as the key(s) at the top level of the object. Use of provisionConstraints will now ignore the existing condition that the pod's name must contain the release. This is to allow for multiple instanceserver deployments of varying sizes; if one wanted some instanceservers on e.g. t3a.smalls and others on t3a.xlarges, they would need to be separate nodeGroups in AWS, and there would need to be separate Helm deployments for the different instanceserver sizes with labels indicating e.g. numCores or maxCCU for each deplyoment. The deployments must have different names, which would make the name match regex not match all deployments. Added a script to build the full monorepo for deployment on Docker Desktop's Kubernetes cluster. This unfortunately isn't 100% sufficient for testing/running, as the Agones pods do not appear to be publicly addressable, so the mediasoup UDP connections cannot be successfully made. Removed concept of pressured instances for provisioning. getISInService now just checks whether an existing instance is below the cap for that location or not.
- Loading branch information
Showing
5 changed files
with
280 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.