From c62be5620ba9d70d9f0a45e69902e08a17de4f1b Mon Sep 17 00:00:00 2001 From: Jarek Kowalski Date: Wed, 23 Jan 2019 07:57:55 -0800 Subject: [PATCH] added resource limits to gameserver.yaml and changed to name: to generateName:, this allows easy ad-hoc creation of multiple game servers and facilitates dense load testing --- examples/simple-udp/gameserver.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/simple-udp/gameserver.yaml b/examples/simple-udp/gameserver.yaml index b279ae6710..bdf882b535 100644 --- a/examples/simple-udp/gameserver.yaml +++ b/examples/simple-udp/gameserver.yaml @@ -15,7 +15,7 @@ apiVersion: "stable.agones.dev/v1alpha1" kind: GameServer metadata: - name: "simple-udp" + generateName: "simple-udp-" spec: ports: - name: default @@ -26,3 +26,10 @@ spec: containers: - name: simple-udp image: gcr.io/agones-images/udp-server:0.5 + resources: + requests: + memory: "32Mi" + cpu: "20m" + limits: + memory: "32Mi" + cpu: "20m"