Skip to content

Commit 8bbc2e3

Browse files
author
James Rhoat
authored
Merge pull request #39 from hyperbolic2346/externalTrafficPolicy
2 parents a22ba07 + 27adc1e commit 8bbc2e3

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

charts/factorio-server-charts/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,14 @@ If you do run into any issues with mods, I will try to work with you on finding
192192
193193
### Service Parameters
194194
195-
| Name | Description | Value |
196-
|-----------------------|----------------------------------------------------------------------------------------------------------------------------|------------|
197-
| `service.type` | Factorio service type | `NodePort` |
198-
| `service.port` | Factorio service port | `31497` |
199-
| `service.externalIPs` | If you are able to map an external IP, set it here | |
200-
| `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 | |
201-
| `service.annotations` | Additional custom annotations for Factorio service | `{}` |
195+
| Name | Description | Value |
196+
|---------------------------------|----------------------------------------------------------------------------------------------------------------------------|------------|
197+
| `service.type` | Factorio service type | `NodePort` |
198+
| `service.port` | Factorio service port | `31497` |
199+
| `service.externalIPs` | If you are able to map an external IP, set it here | |
200+
| `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 | |
201+
| `service.annotations` | Additional custom annotations for Factorio service | `{}` |
202+
| `service.externalTrafficPolicy` | Traffic policy, "Cluster" or "Local", used for the service | `Cluster` |
202203
203204
### Persistence Configuration
204205

charts/factorio-server-charts/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ metadata:
1515
{{- end }}
1616
spec:
1717
type: {{ .Values.service.type }}
18+
{{- if .Values.service.externalTrafficPolicy}}
19+
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
20+
{{- end }}
1821
ports:
1922
- name: factorio
2023
targetPort: 34197

charts/factorio-server-charts/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ service:
6565
# port: 34197
6666
## LoadBalancer setup
6767
# type: LoadBalancer
68+
# externalTrafficPolicy: Cluster
6869
annotations: {}
6970

7071

0 commit comments

Comments
 (0)