Skip to content

Commit 7eefc0f

Browse files
committed
Use Geolite db in faf-icebreaker
1 parent 4df69f5 commit 7eefc0f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

apps/faf-icebreaker/templates/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ data:
1111
DB_USERNAME: "faf-icebreaker"
1212
DB_URL: "jdbc:mariadb://mariadb:3306/faf-icebreaker?ssl=false"
1313
XIRSYS_ENABLED: "true"
14+
GEOIPUPDATE_EDITION_IDS: "GeoLite2-City"
15+

apps/faf-icebreaker/templates/deployment.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,19 @@ spec:
2121
prometheus.io/port: '8081'
2222
prometheus.io/path: '/actuator/prometheus'
2323
spec:
24+
initContainers:
25+
- name: geolite-db-dl
26+
image: ghcr.io/maxmind/geoipupdate:v7.0.1
27+
envFrom:
28+
- configMapRef:
29+
name: faf-icebreaker
30+
- secretRef:
31+
name: faf-icebreaker
32+
volumeMounts:
33+
- name: geolite-db
34+
mountPath: /usr/share/GeoIP
2435
containers:
25-
- image: faforever/faf-icebreaker:1.0.5
36+
- image: faforever/faf-icebreaker:1.0.9
2637
imagePullPolicy: Always
2738
name: faf-icebreaker
2839
envFrom:
@@ -32,6 +43,9 @@ spec:
3243
name: faf-icebreaker
3344
ports:
3445
- containerPort: 8080
46+
volumeMounts:
47+
- name: geolite-db
48+
mountPath: /geoip
3549
startupProbe:
3650
httpGet:
3751
port: 8080
@@ -45,4 +59,6 @@ spec:
4559
failureThreshold: 3
4660
periodSeconds: 10
4761
restartPolicy: Always
48-
62+
volumes:
63+
- name: geolite-db
64+
emptyDir: {}

0 commit comments

Comments
 (0)