-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create infra for demo.library.kiwix.org
- Loading branch information
Showing
11 changed files
with
1,010 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Kiwix demo library</title> | ||
<link rel="icon" href="/favicon.ico" type="image/x-icon"> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"> | ||
<style> | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
margin: 0; | ||
font-family: 'Roboto', sans-serif; | ||
background-color: #f4f4f4; | ||
text-align: center; | ||
} | ||
.content { | ||
max-width: 600px; | ||
padding: 20px; | ||
} | ||
img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
p { | ||
margin-top: 20px; | ||
font-size: 18px; | ||
color: #333; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="content"> | ||
<img src="/home/dead-kiwix.png" alt="Image"> | ||
<p>There is nothing here, your URL is probably wrong.</p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: demo-generator | ||
namespace: zim | ||
spec: | ||
schedule: "0 * * * *" | ||
successfulJobsHistoryLimit: 1 | ||
failedJobsHistoryLimit: 1 | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
backoffLimit: 1 | ||
template: | ||
spec: | ||
containers: | ||
- name: debian | ||
image: ghcr.io/kiwix/maintenance:latest | ||
imagePullPolicy: Always | ||
env: | ||
- name: INSTALL_SCRIPTS | ||
value: "demo-generator#github://kiwix/k8s/zim/library-mgmt/demo-generator.py\n" | ||
volumeMounts: | ||
- mountPath: "/data/demo" | ||
subPath: demo | ||
name: library-volume | ||
- mountPath: "/data/zim" | ||
subPath: zim | ||
name: download-volume | ||
readOnly: true | ||
- mountPath: "/data/hidden-zim" | ||
name: hidden-volume | ||
readOnly: true | ||
args: ["demo-generator"] | ||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 256Mi | ||
volumes: | ||
- name: library-volume | ||
persistentVolumeClaim: | ||
claimName: kiwix-library-pvc | ||
- name: download-volume | ||
persistentVolumeClaim: | ||
claimName: kiwix-download-pvc | ||
- name: hidden-volume | ||
persistentVolumeClaim: | ||
claimName: hidden-zim-pvc | ||
restartPolicy: Never | ||
nodeSelector: | ||
k8s.kiwix.org/role: "storage" |
Oops, something went wrong.