This commit is contained in:
2026-10-23 11:18:18 -04:00
parent 259c4aa83f
commit d5bbbd4f20
17 changed files with 2303 additions and 154 deletions
+27 -4
View File
@@ -16,7 +16,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: config
name: data
namespace: tes3mp
spec:
accessModes:
@@ -25,6 +25,18 @@
requests:
storage: 16Gi
- name: Create a config map
k8s:
state: present
definition:
apiVersion: v1
kind: ConfigMap
metadata:
name: config
namespace: tes3mp
data:
tes3mp-server-default.cfg: "{{ lookup('template', 'tes3mp-server-default.cfg.j2') }}"
- name: Create a deployment
k8s:
definition:
@@ -45,21 +57,32 @@
spec:
containers:
- name: tes3mp
image: tes3mp/server
image: tes3mp/server:0.7.0
imagePullPolicy: Always
volumeMounts:
- name: data
mountPath: /server/data
- name: config
mountPath: /server/tes3mp-server-default.cfg
subPath: tes3mp-server-default.cfg
ports:
- containerPort: 25565
env:
- name: TES3MP_SERVER_GENERAL_HOSTNAME
value: tes3.eom.dev
- name: TES3MP_SERVER_GENERAL_PASSWORD
value: "{{ tes3mp_password }}"
value: "{{ tes3mp_server_general_password }}"
command:
- "./tes3mp-server"
args:
- "$@"
volumes:
- name: data
persistentVolumeClaim:
claimName: data
- name: config
configMap:
name: config
- name: Expose deployment as a service
k8s:
@@ -73,7 +96,7 @@
selector:
app: tes3mp
ports:
- port: 25566
- port: 25565
targetPort: 25565
name: tes3mp
protocol: UDP