Skip to content

Commit

Permalink
Add manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkaergaard committed Sep 29, 2018
1 parent beaddc2 commit eb929b7
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 0 deletions.
63 changes: 63 additions & 0 deletions manifests/ctf-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: soldat-ctf-1
spec:
replicas: 1
template:
metadata:
labels:
app: soldat-ctf-1
spec:
containers:
- name: soldat-ctf-1
image: npflan/soldat:0.1.0
imagePullPolicy: Always
ports:
- containerPort: 23073
name: game
- containerPort: 23083
name: files
readinessProbe: &default_probe
tcpSocket:
port: 23083
initialDelaySeconds: 10
timeoutSeconds: 10
livenessProbe: *default_probe
env:
- name: GAME_STYLE
value: "3"
- name: MAX_PLAYERS
value: "12"
- name: SERVER_NAME
value: "NPF FFA - Soldat CTF 1"
- name: BALANCE_TEAMS
value: "1"
resources:
requests:
memory: "350Mi"
cpu: "0.8"
---
kind: Service
apiVersion: v1
metadata:
name: soldat-ctf-1
labels:
app: soldat-ctf-1
spec:
type: ClusterIP
clusterIP: 10.101.130.1
selector:
app: soldat-ctf-1
ports:
- name: gameserver
protocol: UDP
port: 23073
targetPort: 23073
- name: admin
protocol: TCP
port: 23073
- name: files
protocol: TCP
port: 23083
targetPort: 23083
63 changes: 63 additions & 0 deletions manifests/ctf-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: soldat-ctf-2
spec:
replicas: 1
template:
metadata:
labels:
app: soldat-ctf-2
spec:
containers:
- name: soldat-ctf-2
image: npflan/soldat:0.1.0
imagePullPolicy: Always
ports:
- containerPort: 23073
name: game
- containerPort: 23083
name: files
readinessProbe: &default_probe
tcpSocket:
port: 23083
initialDelaySeconds: 10
timeoutSeconds: 10
livenessProbe: *default_probe
env:
- name: GAME_STYLE
value: "3"
- name: MAX_PLAYERS
value: "12"
- name: SERVER_NAME
value: "NPF FFA - Soldat CTF 2"
- name: BALANCE_TEAMS
value: "1"
resources:
requests:
memory: "350Mi"
cpu: "0.8"
---
kind: Service
apiVersion: v1
metadata:
name: soldat-ctf-2
labels:
app: soldat-ctf-2
spec:
type: ClusterIP
clusterIP: 10.101.130.2
selector:
app: soldat-ctf-2
ports:
- name: gameserver
protocol: UDP
port: 23073
targetPort: 23073
- name: admin
protocol: TCP
port: 23073
- name: files
protocol: TCP
port: 23083
targetPort: 23083
63 changes: 63 additions & 0 deletions manifests/deathmatch-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: soldat-deathmatch-1
spec:
replicas: 1
template:
metadata:
labels:
app: soldat-deathmatch-1
spec:
containers:
- name: soldat-deathmatch-1
image: npflan/soldat:0.1.0
imagePullPolicy: Always
ports:
- containerPort: 23073
name: game
- containerPort: 23083
name: files
readinessProbe: &default_probe
tcpSocket:
port: 23083
initialDelaySeconds: 10
timeoutSeconds: 10
livenessProbe: *default_probe
env:
- name: GAME_STYLE
value: "0"
- name: MAX_PLAYERS
value: "18"
- name: SERVER_NAME
value: "NPF FFA - Soldat Deathmatch 1"
- name: BALANCE_TEAMS
value: "1"
resources:
requests:
memory: "350Mi"
cpu: "0.8"
---
kind: Service
apiVersion: v1
metadata:
name: soldat-deathmatch-1
labels:
app: soldat-deathmatch-1
spec:
type: ClusterIP
clusterIP: 10.101.130.11
selector:
app: soldat-deathmatch-1
ports:
- name: gameserver
protocol: UDP
port: 23073
targetPort: 23073
- name: admin
protocol: TCP
port: 23073
- name: files
protocol: TCP
port: 23083
targetPort: 23083

0 comments on commit eb929b7

Please sign in to comment.