mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
ioquake3: add service
This commit is contained in:
parent
710e0c8cd1
commit
8bcc6c843b
1 changed files with 51 additions and 0 deletions
51
apps/services/quake.yaml
Normal file
51
apps/services/quake.yaml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: quake
|
||||
labels:
|
||||
app: quake
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: quake
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: quake
|
||||
spec:
|
||||
volumes:
|
||||
- name: data
|
||||
hostPath:
|
||||
path: /data/quake
|
||||
type: DirectoryOrCreate
|
||||
containers:
|
||||
- name: quake
|
||||
image: jberrenberg/quake3
|
||||
imagePullPolicy: IfNotPresent
|
||||
args:
|
||||
- +exec
|
||||
- server.cfg
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /home/ioq3srv/.q3a/baseq3
|
||||
ports:
|
||||
- name: quake
|
||||
protocol: UDP
|
||||
containerPort: 27960
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: quake
|
||||
spec:
|
||||
selector:
|
||||
app: quake
|
||||
ports:
|
||||
- name: quake
|
||||
protocol: UDP
|
||||
port: 27960
|
||||
targetPort: quake
|
||||
nodePort: 30960
|
||||
type: NodePort
|
||||
Loading…
Reference in a new issue