agones: Health Check Failure

Hi all,

I’ve created a minikube cluster inside a vmware ubuntu 20 machine. The minikube is working fine and I had no trouble installing agones.

What happened:

When following the starter guide and creating the game server, it end-up in an unhealthy state due to constant health check failure.

What you expected to happen:

Health check should have been successful.

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

  1. create an ubuntu 20 vm machine in vmware.
  2. install minikube
  3. install agones.
  4. follow starter guide
  5. health check fails.

Anything else we need to know?:

$ kubectl describe gs
Name:         simple-game-server-hbs7j
Namespace:    default
Labels:       <none>
Annotations:  agones.dev/ready-container-id: docker://bdeaa85c5013e706c65339f8e2276460021ac6c699b54401fa06142b209216e0
              agones.dev/sdk-version: 1.15.0
API Version:  agones.dev/v1
Kind:         GameServer
Metadata:
  Creation Timestamp:  2021-06-14T10:24:31Z
  Finalizers:
    agones.dev
  Generate Name:  simple-game-server-
  Generation:     7
  Managed Fields:
    API Version:  agones.dev/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:generateName:
      f:spec:
        .:
        f:template:
          .:
          f:spec:
            .:
            f:containers:
    Manager:      kubectl-create
    Operation:    Update
    Time:         2021-06-14T10:24:31Z
    API Version:  agones.dev/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          f:agones.dev/ready-container-id:
      f:spec:
        f:ports:
      f:status:
        f:address:
        f:nodeName:
        f:ports:
    Manager:      controller
    Operation:    Update
    Time:         2021-06-14T10:24:43Z
    API Version:  agones.dev/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        f:state:
    Manager:         sdk-server
    Operation:       Update
    Time:            2021-06-14T10:25:21Z
  Resource Version:  2421
  UID:               d6975945-3114-4896-8f87-3424d3a2304f
Spec:
  Container:  simple-game-server
  Health:
    Failure Threshold:      3
    Initial Delay Seconds:  5
    Period Seconds:         5
  Ports:
    Container:       simple-game-server
    Container Port:  7654
    Host Port:       7332
    Name:            default
    Port Policy:     Dynamic
    Protocol:        UDP
  Scheduling:        Packed
  Sdk Server:
    Grpc Port:  9357
    Http Port:  9358
    Log Level:  Info
  Template:
    Metadata:
      Creation Timestamp:  <nil>
    Spec:
      Containers:
        Image:  gcr.io/agones-images/simple-game-server:0.3
        Name:   simple-game-server
        Resources:
          Limits:
            Cpu:     20m
            Memory:  64Mi
          Requests:
            Cpu:     20m
            Memory:  64Mi
Status:
  Address:    192.168.99.101
  Node Name:  agones
  Players:    <nil>
  Ports:
    Name:          default
    Port:          7332
  Reserved Until:  <nil>
  State:           Unhealthy
Events:
  Type     Reason          Age   From                   Message
  ----     ------          ----  ----                   -------
  Normal   PortAllocation  27m   gameserver-controller  Port allocated
  Normal   Creating        27m   gameserver-controller  Pod simple-game-server-hbs7j created
  Normal   Scheduled       27m   gameserver-controller  Address and port populated
  Normal   RequestReady    27m   gameserver-sidecar     SDK state change
  Normal   Ready           27m   gameserver-controller  SDK.Ready() complete
  Warning  Unhealthy       26m   gameserver-sidecar     Health check failure

Environment:

  • Agones version: v1

  • Kubernetes version (use kubectl version): Client Version: version.Info{Major:“1”, Minor:“21”, GitVersion:“v1.21.1”, GitCommit:“5e58841cce77d4bc13713ad2b91fa0d961e69192”, GitTreeState:“clean”, BuildDate:“2021-05-12T14:18:45Z”, GoVersion:“go1.16.4”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{Major:“1”, Minor:“20”, GitVersion:“v1.20.2”, GitCommit:“faecb196815e248d3ecfb03c680a4507229c2a56”, GitTreeState:“clean”, BuildDate:“2021-01-13T13:20:00Z”, GoVersion:“go1.15.5”, Compiler:“gc”, Platform:“linux/amd64”}

  • Cloud provider or hardware configuration: local vm minikube

  • Install method (yaml/helm): helm

  • Troubleshooting guide log(s):

  • Others:

Help to solve issue or debug will be appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

Btw, would have been nice with an HTTP 400 as response instead of a 200 in this case

That sounds like a feature request that should be split into a separate issue. I’ve created https://github.com/googleforgames/agones/issues/2256 to track this.