Skip to content

Commit 08514f1

Browse files
committed
Commented default autoplace_controls
Added documentation about the parameters
1 parent edc395a commit 08514f1

File tree

1 file changed

+120
-37
lines changed

1 file changed

+120
-37
lines changed

charts/factorio-server-charts/values.yaml

Lines changed: 120 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
#### K8s configuration ####
2-
## Number of replicas to create (only 1 is supported)
2+
## @section Kubernetes Parameters
3+
## @param replicaCount Number of replicas to create (only 1 is supported)
4+
## @param nodeSelector Node labels for pod assignment
5+
## @param resources.requests.cpu The requested cpu for the Factorio containers
6+
## @param resources.requests.memory The requested memory for the Factorio containers
7+
## @param resources.limits If you like to limit Factorio resources
8+
## @param strategy.type Strategy used to replace old pods
9+
## @param tolerations Tolerations for pod assignment
10+
## @param affinity Affinity rules for pod assignment
11+
12+
313
replicaCount: 1
414

15+
16+
#### Image Configuration ####
17+
## @section Image Parameters
18+
## @param image.repository Factorio image repository
19+
## @param image.tag Factorio image tag (immutable tags are recommended)
20+
## @param image.pullPolicy Factorio image pull policy
521
image:
622
repository: "factoriotools/factorio"
723
## Container image pull policy
@@ -16,12 +32,18 @@ nodeSelector: {}
1632
# beta.kubernetes.io/arch: amd64
1733
# kubernetes.io/hostname: your-cool-hostname
1834

19-
35+
#### Service Configuration ####
36+
## @section Service Parameters
37+
## @param service.type Factorio service type
38+
## @param service.port Factorio service port
39+
## @extra service.externalIPs [array] If you are able to map an external IP, set it here
40+
## @extra service.nodePort If you use "type: NodePort" set the port to a value you like in the range of 30000-32767. Leave it blank for a random port
41+
## @param service.annotations Additional custom annotations for Factorio service
2042
## The service is a kind tricky, so factorio uses UDP, but not every cloud provider is able to route UDP traffic.
2143
## I.e. your cloud provider has LoadBalancers without the ability for UDP protocol. Furthermore kubectl ist not able to route UDP Traffic
2244
## ref: https://github.com/kubernetes/kubernetes/issues/47862
2345
## You have to expose factorio on a NodePort and map a port between 30000 and 32767, but the native port is 34197. So you have always to specify the port in factorio.
24-
## The best way ist to define a ClusterIP service and define one or more externalIPs. Of course this IPs must be avaiable on the node the factorio pod runs on !
46+
## The best way ist to define a ClusterIP service and define one or more externalIPs. Of course this IPs must be available on the node the factorio pod runs on!
2547
service:
2648
type: NodePort
2749
port: 31497
@@ -52,6 +74,7 @@ resources:
5274
memory: 512Mi
5375
cpu: 500m
5476
## If you like to limit factiorio resources
77+
limits: {}
5578
# limits:
5679
# memory: 1024Mi
5780
# cpu: 1000m
@@ -73,6 +96,13 @@ tolerations: []
7396
# Affinity rules for pod assignment
7497
affinity: {}
7598

99+
#### Persistence Configuration ####
100+
## @section Persistence Configuration
101+
## @param persistence.enabled Enable persistence using Persistent Volume Claims
102+
## @param persistence.dataDir.Size Persistent Volume size
103+
## @extra persistence.dataDir.existingClaim The name of an existing PVC to use for persistence
104+
## @param persistence.storageClassName Persistent Volume storage class
105+
## @param persistence.annotations Persistent Volume Claim annotations
76106
## Sets the data persistence volume configuration
77107
## IMPORTANT: If you do not setup a PV all your savegames will be lost on pod recreation or helm upgrade
78108
persistence:
@@ -87,7 +117,11 @@ persistence:
87117
annotations: {}
88118

89119

90-
#### factorio application configuration ####
120+
#### Factorio application configuration ####
121+
## @section Factorio Parameters
122+
## @param mods.enabled Enable mods
123+
## @param mods.portal List of official mods to be downloaded from Factorio Mod Portal
124+
## @param mods.unofficial List of unofficial mods name and url to download into the mods folder
91125
mods:
92126
enabled: false
93127
# in order to use the mods portal you will need to specify the username and token in the server_settings.
@@ -104,6 +138,10 @@ mods:
104138
# - url: "https://github.com/Suprcheese/Squeak-Through/archive/refs/tags/1.8.2.zip"
105139
# name: "Squeak Through_1.8.2.zip"
106140

141+
## @param factorioServer.save_name Factorio save name
142+
## @param factorioServer.generate_new_save Generate a new save if `save_name` is not found
143+
## @param factorioServer.update_mods_on_start Update mods on server start
144+
## @param factorioServer.load_latest_save Lets the game know if you want to load the latest save
107145
factorioServer:
108146
# specify a save name
109147
save_name: "replaceMe"
@@ -114,6 +152,10 @@ factorioServer:
114152
# lets the game know if you want to load the latest save
115153
load_latest_save: true
116154

155+
## @param account.accountSecret Existing secret containing a valid factorio.com username and either a password or a token (or both)
156+
## @param account.username Factorio.com username, ignored if `account.accountSecret` is set
157+
## @param account.password Factorio.com password, ignored if `account.accountSecret` is set
158+
## @param account.token Factorio.com token, ignored if `account.accountSecret` is set
117159
account:
118160
# Existing secret containing a valid factorio.com username and either a password or a token
119161
# Example:
@@ -134,12 +176,37 @@ account:
134176
# Authentication token. May be used instead of password above.
135177
token: ''
136178

179+
## @param serverPassword.passwordSecret Existing Secret containing a `game_password` data entry
180+
## @param serverPassword.game_password Password required to log into the factorio server. Ignored if `serverPassword.passwordSecret` is set
137181
serverPassword:
138182
# password required to log into the factorio server
139183
game_password: ''
140184
# Existing Secret containing a `game_password` data entry
141185
passwordSecret: ''
142186

187+
## @param server_settings.name Factorio server name
188+
## @param server_settings.description Factorio server description
189+
## @param server_settings.tags Factorio server tags
190+
## @param server_settings.max_players Maximum number of players allowed, admins can join even a full server. 0 means unlimited
191+
## @param server_settings.visibility.public Publish the server on the official Factorio matching server
192+
## @param server_settings.visibility.lan Server will be visible in LAN
193+
## @param server_settings.require_user_verification When set to true, the server will only allow clients that have a valid Factorio.com account
194+
## @param server_settings.max_upload_in_kilobytes_per_second Optional, default value is 0. 0 means unlimited
195+
## @param server_settings.max_upload_slots Optional, default value is 5. 0 means unlimited
196+
## @param server_settings.minimum_latency_in_ticks Optional, one tick is 16ms in default speed, default value is 0. 0 means no minimum
197+
## @param server_settings.ignore_player_limit_for_returning_players Players that played on this map already can join even when the max player limit is reached
198+
## @param server_settings.allow_commands Possible values are true, false and admins-only
199+
## @param server_settings.autosave_interval Autosave interval in minutes
200+
## @param server_settings.autosave_slots Server autosave slots, it is cycled through when the server autosaves
201+
## @param server_settings.afk_autokick_interval How many minutes must pass before someone is kicked when doing nothing, 0 for never
202+
## @param server_settings.auto_pause Whether the server should be paused when no players are present
203+
## @param server_settings.only_admins_can_pause_the_game Specifies if anyone can pause or only admins
204+
## @param server_settings.autosave_only_on_server Whether autosaves should be performed only on the server or also on all connected clients. Default is true
205+
## @param server_settings.non_blocking_saving Highly experimental feature, enable only at your own risk
206+
## @param server_settings.minimum_segment_size Minimum network messages segment size
207+
## @param server_settings.minimum_segment_size_peer_count Minimum network messages segment count
208+
## @param server_settings.maximum_segment_size Maximum network messages segment size
209+
## @param server_settings.maximum_segment_size_peer_count Minimum network messages segment count
143210
server_settings:
144211
# Your Instance Name
145212
name: Factorio
@@ -197,6 +264,11 @@ server_settings:
197264
maximum_segment_size: 100
198265
maximum_segment_size_peer_count: 10
199266

267+
## @param rcon.external Enable RCON external access (deploy RCON service)
268+
## @param rcon.type RCON service type
269+
## @param rcon.passwordSecret Existing secret containing a `password` data field
270+
## @param rcon.password Password for RCON, ignored if `rcon.passwordSecret` is set
271+
## @param rcon.port RCON service external port
200272
# Password and port for the rcon service
201273
rcon:
202274
external: true
@@ -211,6 +283,17 @@ rcon:
211283
# rcon port
212284
port: 30100
213285

286+
## @param map_gen_settings.terrain_segmentation The inverse of water scale in the map generator GUI
287+
## @param map_gen_settings.water The equivalent to water coverage in the map generator GUI
288+
## @param map_gen_settings.width Map width in tiles; 0 means infinite
289+
## @param map_gen_settings.height Map height in tiles; 0 means infinite
290+
## @param map_gen_settings.starting_area Multiplier for biter free zone radius
291+
## @param map_gen_settings.peaceful_mode Enable Peaceful mode
292+
## @param map_gen_settings.autoplace_controls Override default ore, trees and enemy bases frequency, size and richness. Leave empty for default values. Supports including modded ores
293+
## @param map_gen_settings.cliff_settings.name Override default cliff prototype name
294+
## @param map_gen_settings.cliff_settings.cliff_elevation_0 Override elevation of first row of cliffs
295+
## @param map_gen_settings.cliff_settings.cliff_elevation_interval Override elevation difference between successive rows of cliffs
296+
## @param map_gen_settings.cliff_settings.richness Called cliff continuity in the map generator GUI. 0 will result in no cliffs, 10 will make all cliff rows completely solid
214297
map_gen_settings:
215298
# The inverse of water scale in the map generator GUI.
216299
terrain_segmentation: 1
@@ -225,39 +308,39 @@ map_gen_settings:
225308
# Multiplier for biter free zone radius
226309
starting_area: 1
227310
peaceful_mode: false
228-
autoplace_controls:
229-
coal:
230-
frequency: 1
231-
size: 1
232-
richness: 1
233-
stone:
234-
frequency: 1
235-
size: 1
236-
richness: 1
237-
copper-ore:
238-
frequency: 1
239-
size: 1
240-
richness: 1
241-
iron-ore:
242-
frequency: 1
243-
size: 1
244-
richness: 1
245-
uranium-ore:
246-
frequency: 1
247-
size: 1
248-
richness: 1
249-
crude-oil:
250-
frequency: 1
251-
size: 1
252-
richness: 1
253-
trees:
254-
frequency: 1
255-
size: 1
256-
richness: 1
257-
enemy-base:
258-
frequency: 1
259-
size: 1
260-
richness: 1
311+
autoplace_controls: []
312+
# coal:
313+
# frequency: 1
314+
# size: 1
315+
# richness: 1
316+
# stone:
317+
# frequency: 1
318+
# size: 1
319+
# richness: 1
320+
# copper-ore:
321+
# frequency: 1
322+
# size: 1
323+
# richness: 1
324+
# iron-ore:
325+
# frequency: 1
326+
# size: 1
327+
# richness: 1
328+
# uranium-ore:
329+
# frequency: 1
330+
# size: 1
331+
# richness: 1
332+
# crude-oil:
333+
# frequency: 1
334+
# size: 1
335+
# richness: 1
336+
# trees:
337+
# frequency: 1
338+
# size: 1
339+
# richness: 1
340+
# enemy-base:
341+
# frequency: 1
342+
# size: 1
343+
# richness: 1
261344
cliff_settings:
262345
# Name of the cliff prototype
263346
name: cliff

0 commit comments

Comments
 (0)