Skip to content

Commit

Permalink
Fix small errors in k8s configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Oct 30, 2023
1 parent da1097d commit e3da9c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zimfarm/report/report-youtube-api-keys.cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: report-youtube-api-keys
namespace: zimfarm
data:
list_youtube_api_keys_used.conf.json: |
report_youtube_api_keys.conf.json: |
{
"cc319f3e8ee3f586646b98c55bc0a7b3d9f27ac3393d1bc982aaef5930cc313a": "large-crashcourse-1",
"9dc879afd8f9a95e7eb30167311dd7346bcc6bdfafc6bd1e217460830323c7ef": "large-mathtiques-2",
Expand Down
5 changes: 4 additions & 1 deletion zimfarm/report/report-youtube-api-keys.cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ spec:
backoffLimit: 2
template:
spec:
restartPolicy: Never
containers:
- image: ghcr.io/openzim/zimfarm-dispatcher:latest
imagePullPolicy: IfNotPresent
name: zimfarm
envFrom:
- secretRef:
name: report-youtube-api-keys
Expand All @@ -35,6 +37,7 @@ spec:
mountPath: /app/maint-scripts/report_youtube_api_keys.conf.json
subPath: report_youtube_api_keys.conf.json
readOnly: true
workingDir: /app/maint-scripts
command: ["/app/maint-scripts/report_youtube_api_keys.py"]
resources:
requests:
Expand All @@ -43,6 +46,6 @@ spec:
volumes:
- name: report-youtube-api-keys-config
configMap:
name: report-youtube-api-keys-config
name: report-youtube-api-keys
nodeSelector:
k8s.kiwix.org/role: "services"

0 comments on commit e3da9c7

Please sign in to comment.