diff --git a/charts/skyrim-together/Chart.yaml b/charts/skyrim-together/Chart.yaml new file mode 100644 index 000000000..07c8e2400 --- /dev/null +++ b/charts/skyrim-together/Chart.yaml @@ -0,0 +1,6 @@ +apiVersion: v2 +name: skyrim-together +description: A Helm chart for Skyrim Together +type: application +version: 0.0.0 +appVersion: "v1.8.0" \ No newline at end of file diff --git a/charts/skyrim-together/README.md b/charts/skyrim-together/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/charts/skyrim-together/templates/deployment.yaml b/charts/skyrim-together/templates/deployment.yaml new file mode 100644 index 000000000..c1fe77ca5 --- /dev/null +++ b/charts/skyrim-together/templates/deployment.yaml @@ -0,0 +1,62 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Chart.Name }} + namespace: st + labels: + app: {{ .Chart.Name }} +spec: + replicas: {{ .Values.replicas }} + selector: + matchLabels: + app: {{ .Chart.Name }} + template: + metadata: + labels: + app: {{ .Chart.Name }} + spec: + restartPolicy: Always + containers: + - name: skyrim-together + image: "{{ .Values.image.registry }}/tiltedphoques/st-reborn-server:{{ .Chart.AppVersion }}" + imagePullPolicy: IfNotPresent + stdin: true + tty: true + ports: + - name: server + containerPort: {{ .Values.image.ports.server }} + protocol: UDP + volumeMounts: + - name: config + mountPath: /st-server/config + - name: data + mountPath: /st-server/Data + - name: logs + mountPath: /st-server/logs + - name: localtime + mountPath: /etc/localtime + readOnly: true + - name: timezone + mountPath: /etc/timezone + readOnly: true + volumes: + - name: config + configMap: + name: skyrim-together-config + defaultMode: 0644 + - name: data + hostPath: + path: {{ .Values.volumes.data.hostPath }} + type: Directory + - name: logs + hostPath: + path: {{ .Values.volumes.logs.hostPath }} + type: Directory + - name: localtime + hostPath: + path: /etc/localtime + type: File + - name: timezone + hostPath: + path: /etc/timezone + type: File \ No newline at end of file diff --git a/charts/skyrim-together/templates/namespace.yaml b/charts/skyrim-together/templates/namespace.yaml new file mode 100644 index 000000000..59d86121d --- /dev/null +++ b/charts/skyrim-together/templates/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: st \ No newline at end of file diff --git a/charts/skyrim-together/templates/service.yaml b/charts/skyrim-together/templates/service.yaml new file mode 100644 index 000000000..7b258f811 --- /dev/null +++ b/charts/skyrim-together/templates/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Chart.Name }} + namespace: st + labels: + app: {{ .Chart.Name }} +spec: + type: LoadBalancer + selector: + app: {{ .Chart.Name }} + ports: + - name: server + port: {{ .Values.image.ports.server }} + targetPort: {{ .Values.image.ports.server }} + protocol: UDP \ No newline at end of file diff --git a/charts/skyrim-together/templates/skyrimtogether-serverconfig.yaml b/charts/skyrim-together/templates/skyrimtogether-serverconfig.yaml new file mode 100644 index 000000000..f3a67b880 --- /dev/null +++ b/charts/skyrim-together/templates/skyrimtogether-serverconfig.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: skyrim-together-config + namespace: st + labels: + app: {{ .Chart.Name }} +data: +{{ toYaml .Values.configMap | indent 2 }} \ No newline at end of file diff --git a/charts/skyrim-together/values.yaml b/charts/skyrim-together/values.yaml new file mode 100644 index 000000000..8560b0be5 --- /dev/null +++ b/charts/skyrim-together/values.yaml @@ -0,0 +1,14 @@ +replicas: 1 +image: + registry: docker.io + ports: + server: 10578 +volumes: + data: + hostPath: /data/skyrim-together + logs: + hostPath: /var/log/skyrim-together + +configMap: + STServer.ini: | + sLogLevel=warn