This commit is contained in:
parent
7bab9fd2fa
commit
00f5684408
@ -26,6 +26,18 @@
|
||||
requests:
|
||||
storage: 32Gi
|
||||
|
||||
- name: Create a ConfigMap
|
||||
k8s:
|
||||
state: present
|
||||
definition:
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: config
|
||||
namespace: vintage-story
|
||||
data:
|
||||
serverconfig.json: "{{ lookup('template', 'serverconfig.json.j2') }}"
|
||||
|
||||
- name: Create Deployment for Vintage Story
|
||||
k8s:
|
||||
definition:
|
||||
@ -50,6 +62,9 @@
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /gamedata
|
||||
- name: config
|
||||
mountPath: /gamedata/vs/serverconfig.json
|
||||
subPath: serverconfig.json
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 42420
|
||||
@ -57,6 +72,12 @@
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: data
|
||||
- name: config
|
||||
configMap:
|
||||
name: config
|
||||
items:
|
||||
- key: serverconfig.json
|
||||
path: serverconfig.json
|
||||
|
||||
- name: Create Service for Vintage Story
|
||||
k8s:
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"FileEditWarning": "",
|
||||
"ConfigVersion": "1.8",
|
||||
"ServerName": "Vintage Story Server on eom.dev",
|
||||
"ServerName": "{{ ServerName }}",
|
||||
"ServerUrl": null,
|
||||
"ServerDescription": null,
|
||||
"WelcomeMessage": "Welcome {0}, may you survive well and prosper",
|
||||
@ -355,7 +355,7 @@
|
||||
"AllowFallingBlocks": true,
|
||||
"HostedMode": false,
|
||||
"HostedModeAllowMods": false,
|
||||
"StartupCommands": "/whitelist add 3wm/diYjPGuydHNvOd6H0fDy",
|
||||
"StartupCommands": "{{ StartupCommands }}",
|
||||
"RepairMode": false,
|
||||
"AnalyzeMode": false,
|
||||
"CorruptionProtection": true,
|
||||
|
Loading…
Reference in New Issue
Block a user