mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
Add deployment for dontstarve
This commit is contained in:
parent
4c80b61360
commit
6c828e070e
1 changed files with 44 additions and 0 deletions
44
dst.yaml
Normal file
44
dst.yaml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: dst
|
||||
spec:
|
||||
serviceName: dst
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: dst
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: dst
|
||||
spec:
|
||||
|
||||
# needed because only clients with local network are allowed
|
||||
hostNetwork: true
|
||||
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
fsGroup: 1000
|
||||
volumes:
|
||||
- name: dst
|
||||
hostPath:
|
||||
path: /data/home/dst
|
||||
type:
|
||||
containers:
|
||||
- name: dst-master
|
||||
image: gorilych/dst:v0.0.1
|
||||
stdin: true
|
||||
tty: true
|
||||
volumeMounts:
|
||||
- name: dst
|
||||
mountPath: /data
|
||||
args:
|
||||
- Master
|
||||
- name: dst-caves
|
||||
image: gorilych/dst:v0.0.1
|
||||
volumeMounts:
|
||||
- name: dst
|
||||
mountPath: /data
|
||||
args:
|
||||
- Caves
|
||||
Loading…
Reference in a new issue