You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,35 +13,35 @@ This chart deploys Factorio on a [Kubernetes](http://kubernetes.io) cluster usin
11
13
12
14
## Prerequisites
13
15
14
-
-This chart does require a nodeport open if playing publicly.
15
-
-networking knowledge to route the traffic to the appropriate port.
16
+
-An open NodePort or a UDP capable LoadBalancer if playing publicly.
17
+
-Networking knowledge to route the traffic to the appropriate port.
16
18
17
19
## Background
18
-
This is something of a passion project for both learning kubernetes and because kubernetes is awesome.
19
-
Because of this, I have only confirm this working on version 1.1.0 of factorio but I am sure it will work just fine on old versions as long as the schema doesn't change to much on the Secrets settings.
20
+
This is something of a passion project for both learning kubernetes and because kubernetes is awesome.
21
+
Because of this, I have only confirm this working on version 1.1.0 of Factorio, but I am sure it will work just fine on old versions as long as the schema doesn't change to much on the Secrets settings.
20
22
21
-
However, with the way this is implemented if you want to make it backwards compatible, you can update the appropriate sections in the values.yaml file to have the items added or removed to the json files that are required by factorio. Server-settings, map-gen-settings, etc.
23
+
However, with the way this is implemented if you want to make it backwards compatible, you can update the appropriate sections in the values.yaml file to have the items added or removed to the json files that are required by factorio. Server-settings, map-gen-settings, etc.
22
24
23
-
I did run into one issue on my setup, and I feel like it will likely come up again if people follow along. The factorio server is defaulting to run on port 30000 instead of 34197 because the default nginx port range for ingress does not have 34197 within the normal port range. This shows the line of code that specifically is causing the issue inside kubernetes :)
25
+
I did run into one issue on my setup, and I feel like it will likely come up again if people follow along. The Factorio server is defaulting to run on port 30000 instead of 34197 because the default nginx port range for ingress does not have 34197 within the normal port range. This shows the line of code that specifically is causing the issue inside kubernetes :)
Releases are published using the official helm release action in github.
29
+
Releases are published using the official helm release action in github.
28
30
https://github.com/helm/chart-releaser-action
29
31
30
32
## Quick Start
31
-
-create a values.yaml file
32
-
-set the following options
33
+
-Create a values.yaml file
34
+
-Set the following options
33
35
34
-
```
36
+
```yaml
35
37
rcon:
36
38
external: false
37
39
38
-
nodeSelector:
40
+
nodeSelector:
39
41
kubernetes.io/hostname: "<name of your node>"#this makes it easier for firewall rules and makes sure things dont change
40
42
41
-
#making sure the game doesnt auto update on redeploy
42
-
#https://hub.docker.com/r/factoriotools/factorio/
43
+
#making sure the game doesnt auto update on redeploy
44
+
#https://hub.docker.com/r/factoriotools/factorio/
43
45
image:
44
46
tag: "<set me to the appropriate docker tag>"
45
47
@@ -61,25 +63,43 @@ white_list: #put the people you want to play with you based on factorio names
61
63
62
64
server_settings:
63
65
name: Factorio-2022-01-kubernetes
64
-
tags:
66
+
tags:
65
67
- modded
66
68
visibility:
67
69
public: true
70
+
require_user_verification: true
71
+
72
+
account:
73
+
# Existing secret containing a valid factorio.com username and either a password or a token
74
+
# Example:
75
+
#
76
+
# apiVersion: v1
77
+
# kind: Secret
78
+
# metadata:
79
+
# name: account-secret
80
+
# data:
81
+
# username: <username in base64>
82
+
# password: <password in base64>
83
+
#
84
+
# accountSecret: account-secret
85
+
accountSecret: ''
68
86
# Your factorio.com login credentials. Required for games with visibility public
69
87
username: ''
70
-
# Authentication token.
88
+
password: ''
89
+
# Authentication token. May be used instead of password above.
71
90
token: ''
91
+
92
+
serverPassword:
72
93
# password required to log into the factorio server
73
94
game_password: ''
74
-
require_user_verification: true
95
+
# Existing Secret containing a `game_password` data entry
96
+
passwordSecret: ''
75
97
```
76
98
77
-
## installing mods
78
-
79
-
change enabled to true, follow comments below.
99
+
## Installing mods
100
+
To Install mods, change `mods.enabled` to `true`, add any offical mods by their URL name under the `mods.portal` section, and any unofficial mods in the `mods.unofficial`section.
80
101
81
-
If the factorio server doesn't start, check that the logs don't have an error with the mods. They are pretty verbose
82
-
```
102
+
```yaml
83
103
mods:
84
104
enabled: true
85
105
# in order to use the mods portal you will need to specify the username and token in the server_settings.
@@ -88,15 +108,19 @@ mods:
88
108
- Krastorio2
89
109
- StorageTank2_Updated
90
110
- early-robots
91
-
# unofficial section is meant to just allow you to download and place folders into the mods folder.
111
+
# unofficial section is meant to just allow you to download and place folders into the mods folder.
92
112
# we will not check version compatibility automatically with these downloads.
93
113
# you can encounter an error if the file names dont match what the mod is expecting for example
94
-
#Error Util.cpp:83: Failed to load mod "Squeak-Through": Filename of mod
114
+
#Error Util.cpp:83: Failed to load mod "Squeak-Through": Filename of mod
95
115
# /factorio/mods/Squeak-Through.zip doesn't match the expected Squeak Through_1.8.2.zip (case sensitive!)
0 commit comments