forked from googleforgames/agones
-
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.
feat(gameserver): New DirectToGameServer PortPolicy allows direct tra…
…ffic to a GameServer (googleforgames#3807) * gameservers: adds a new DirectToGameServer PortPolicy To be able to access a GameServer with a publicly routable address, this policy allows connecting directly wihout going via the host port. The other policies assume that a host port is always needed. * gameservers: e2e test for DirectToGameServer PortPolicy * update install.yaml Revert the line with line ending changes. * more yaml fixes * docs: changes to the text for DirectToGameServer PortPolicy * test fix - int vs int32 fail * e2e: simplify the test for DirectToGameServer PodPolicy Can't find a good way to send UDP traffic directly to a pod. This is not something that k8s does out of the box and requires a product like Calico or similar that uses BGP to provide direct access to pods. Removing the udp call and making the test much simpler * rename PortPolicy to None and removes unneeded validation rules * Empty commit to retrigger hung build * change e2e test to run on gke * changed gke validation to accept PortPolicy None * PortPolicyNone feature gate * fix e2e test * docs: fix merge conflict
- Loading branch information
Showing
18 changed files
with
396 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
# Copyright 2024 Google LLC All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# [Stage:Alpha] | ||
# [FeatureFlag:PortPolicyNone] | ||
# - "None" means the `hostPort` is ignored and if defined, the `containerPort` (optional) is used to set the port on the GameServer instance. | ||
apiVersion: agones.dev/v1 | ||
kind: GameServer | ||
metadata: | ||
generateName: simple-game-server- | ||
spec: | ||
ports: | ||
- name: default | ||
portPolicy: None | ||
containerPort: 7777 | ||
template: | ||
spec: | ||
containers: | ||
- name: simple-game-server | ||
image: us-docker.pkg.dev/agones-images/examples/simple-game-server:0.28 | ||
resources: | ||
requests: | ||
memory: 64Mi | ||
cpu: 20m | ||
limits: | ||
memory: 64Mi | ||
cpu: 20m |
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.