Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Agones
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
Agones
Commits
bffcb7e4
Commit
bffcb7e4
authored
7 years ago
by
Mark Mandel
Browse files
Options
Downloads
Patches
Plain Diff
First pass at a configuration specification for the game server.
parent
c6ca382b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/gameserver-definition.yaml
+32
-0
32 additions, 0 deletions
examples/gameserver-definition.yaml
examples/gameserver.yaml
+43
-0
43 additions, 0 deletions
examples/gameserver.yaml
with
75 additions
and
0 deletions
examples/gameserver-definition.yaml
0 → 100644
+
32
−
0
View file @
bffcb7e4
# Copyright 2017 Google Inc. 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.
#
# The definition for a singular Dedicated Game Server
#
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
gameservers.stable.agon.io
spec
:
group
:
stable.agon.io
version
:
v1alpha1
scope
:
Namespaced
names
:
plural
:
gameservers
singular
:
gameserver
kind
:
GameServer
shortNames
:
-
gs
\ No newline at end of file
This diff is collapsed.
Click to expand it.
examples/gameserver.yaml
0 → 100644
+
43
−
0
View file @
bffcb7e4
# Copyright 2017 Google Inc. 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.
#
# Full example of a single Game Server resource
#
# This is a superset of the PodSpec (https://kubernetes.io/docs/api-reference/v1.8/#podspec-v1-core)
# that sets hostNetwork=true, provides the port to open on as KOOLIE_GAMESERVER_PORT environment variable
# and provides a sidecar for this game server that the SDK will connect with.
#
# By default, RestartPolicy is set to "Never", but can be overwritten.
#
apiVersion
:
"
stable.agon.io/v1alpha1"
kind
:
GameServer
metadata
:
name
:
"
gds-example"
spec
:
# Koolie specific configuration
# Context for the game server port
portContext
:
# `static` is the only current option. Dynamic port allocated will come in future releases.
# When `static` is the policy specified, `port` is required, to specify the port that game clients will connect to
policy
:
"
static"
port
:
5000
# Pod specifications
containers
:
-
name
:
exampleServer
image
:
gcr.io/agon/test-server
imagePullPolicy
:
Always
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment