Skip to content

Commit 346d841

Browse files
jkowalskimarkmandel
authored andcommitted
added fleet-distributed.yaml for use in load testing
usage: ``` $ kubectl create -f examples/simple-udp/fleet-distributed.yaml $ kubectl scale fleet simple-udp-distributed --replicas=1000 ```
1 parent 6f30bdb commit 346d841

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright 2019 Google Inc. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# special fleet for load testing where we scale the fleet up/and down
16+
# it uses artificially low resource requests to be able to put as many
17+
# pods on a node as possible.
18+
19+
apiVersion: "stable.agones.dev/v1alpha1"
20+
kind: Fleet
21+
metadata:
22+
name: simple-udp-distributed
23+
spec:
24+
replicas: 0
25+
scheduling: Distributed
26+
template:
27+
spec:
28+
ports:
29+
- name: default
30+
containerPort: 7654
31+
template:
32+
spec:
33+
containers:
34+
- name: simple-udp
35+
image: gcr.io/agones-images/udp-server:0.6
36+
resources:
37+
requests:
38+
memory: "32Mi"
39+
cpu: "20m"
40+
limits:
41+
memory: "32Mi"
42+
cpu: "20m"

0 commit comments

Comments
 (0)