From 6c828e070e6a9414ce8702642adf31a9e6e64a3a Mon Sep 17 00:00:00 2001 From: Andrey Kartashov Date: Tue, 18 Jun 2019 22:20:11 +0700 Subject: [PATCH] Add deployment for dontstarve --- dst.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 dst.yaml diff --git a/dst.yaml b/dst.yaml new file mode 100644 index 0000000..b4fce79 --- /dev/null +++ b/dst.yaml @@ -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