Skip to content

Commit

Permalink
Upgrade kiwix-serve to 3.6.0 + rename library-demo to library-data, h…
Browse files Browse the repository at this point in the history
…opefully less missleading
  • Loading branch information
benoit74 committed Nov 20, 2023
1 parent 47198b5 commit 5b58eb1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions zim/library/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ kind: Deployment
metadata:
namespace: zim
labels:
app: library-demo-backend-app
name: library-demo-backend-deployment
app: library-data-backend-app
name: library-data-backend-deployment
spec:
replicas: 2
selector:
matchLabels:
app: library-demo-backend-app
app: library-data-backend-app
template:
metadata:
labels:
app: library-demo-backend-app
app: library-data-backend-app
spec:
containers:
# /!\ manually purge kiwix-serve cache on kiwix-serve version upgrade
# curl -X PURGE -H "X-Purge-Type: kiwix-serve" http://library-frontend-service
# also check that varnish hack still necessary (gzip, endpoints)
- image: ghcr.io/kiwix/kiwix-tools:3.5.0-2
- image: ghcr.io/kiwix/kiwix-tools:3.6.0
imagePullPolicy: IfNotPresent
name: kiwix-tools
args: ["kiwix-serve", "--library", "-v", "--monitorLibrary", "--threads", "16", "--searchLimit", "5", "--nodatealias", "/data/library/internal_library.xml"]
Expand Down Expand Up @@ -61,12 +61,12 @@ apiVersion: v1
kind: Service
metadata:
namespace: zim
name: library-demo-backend-service
name: library-data-backend-service
labels:
app: library-demo-backend-app
app: library-data-backend-app
spec:
selector:
app: library-demo-backend-app
app: library-data-backend-app
ports:
- protocol: TCP
port: 80
Expand All @@ -92,7 +92,7 @@ spec:
spec:
containers:
# /!\ manually purge kiwix-serve cache on kiwix-serve version upgrade
- image: ghcr.io/kiwix/kiwix-tools:3.5.0-2
- image: ghcr.io/kiwix/kiwix-tools:3.6.0
imagePullPolicy: IfNotPresent
name: kiwix-tools
args: ["kiwix-serve", "--library", "-v", "--monitorLibrary", "--threads", "16", "--searchLimit", "5", "--nodatealias", "/data/library/internal_library.xml"]
Expand Down
8 changes: 4 additions & 4 deletions zim/library/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ data:
"100.64.0.0"/16; // k8s cluster
}
# demo backend (HTML) is first (and thus default)
backend demo {
.host = "library-demo-backend-service";
# data backend (HTML) is first (and thus default)
backend data {
.host = "library-data-backend-service";
.port = "80";
# .connect_timeout = 60s;
Expand Down Expand Up @@ -158,7 +158,7 @@ data:
if (req.url ~ "^/catalog/") {
set req.backend_hint = catalog;
} else {
set req.backend_hint = demo;
set req.backend_hint = data;
}
# TEMP: disabling cache until https://github.com/kiwix/libkiwix/issues/995
Expand Down

0 comments on commit 5b58eb1

Please sign in to comment.