Skip to content

Using portPolicy None results in a gameserver's port being 0 #3867

@KAllan357

Description

@KAllan357

What happened:

I attempted to use the new feature in v1.41.0 to set my portPolicy to None and when my gameserver started, the gameserver's port in its status was set to 0. My gameserver code was written to take the Address and Port from the gameserver's status and use them for connections. When the port is 0, this failed.

What you expected to happen:

My expectation is perhaps that when portPolicy is set to None, the Port field of the gameserver's status would become equal to the containerPort value. In other words, to connect to a gameserver Pod with a None portPolicy, I would use the PodIP and the containerPort to connect.

How to reproduce it (as minimally and precisely as possible):

Use any gameserver spec and set its portPolicy to None.

portPolicy:
  - name: game
    portPolicy: None
    protocol: UDP
    containerPort: 1234

Check the status once the gameserver is running:

image

Anything else we need to know?:

Environment:

  • Agones version: v1.41.0
  • Kubernetes version (use kubectl version): v1.30.0-eks-036c24b
  • Cloud provider or hardware configuration: AWS EKS
  • Install method (yaml/helm): Helm
  • Troubleshooting guide log(s):
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThese are great first issues. If you are looking for a place to start, start here!help wantedWe would love help on these issues. Please come help us!kind/bugThese are bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions