mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 17:03:43 +00:00
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
apiVersion: agones.dev/v1
|
|
kind: Fleet
|
|
metadata:
|
|
name: cosmic-clash-game
|
|
namespace: cosmic-clash
|
|
labels:
|
|
app.kubernetes.io/name: game-fleet
|
|
spec:
|
|
replicas: 2
|
|
strategy:
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: game-server
|
|
cosmic-clash.io/region: EU
|
|
cosmic-clash.io/build: build-1
|
|
cosmic-clash.io/protocol: "1"
|
|
cosmic-clash.io/transport: enet
|
|
spec:
|
|
ports:
|
|
- name: game
|
|
containerPort: 7777
|
|
protocol: UDP
|
|
health:
|
|
disabled: false
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
failureThreshold: 3
|
|
template:
|
|
spec:
|
|
nodeSelector:
|
|
cosmic-clash.io/capacity-type: on-demand
|
|
topologySpreadConstraints:
|
|
- maxSkew: 1
|
|
topologyKey: topology.kubernetes.io/zone
|
|
whenUnsatisfiable: DoNotSchedule
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: game-server
|
|
serviceAccountName: match-server
|
|
automountServiceAccountToken: false
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 10001
|
|
runAsGroup: 10001
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: game-server
|
|
image: ghcr.io/cosmic-clash/game-server@sha256:0000000000000000000000000000000000000000000000000000000000000000
|
|
args: ["--port=7777"]
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities:
|
|
drop: [ALL]
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 1
|
|
memory: 512Mi
|