Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/skyrim-together/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
Empty file.
62 changes: 62 additions & 0 deletions charts/skyrim-together/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions charts/skyrim-together/templates/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: st
16 changes: 16 additions & 0 deletions charts/skyrim-together/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 }}
14 changes: 14 additions & 0 deletions charts/skyrim-together/values.yaml
Original file line number Diff line number Diff line change
@@ -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