Compare commits
18 Commits
0xemma-pat
...
main
Author | SHA1 | Date | |
---|---|---|---|
3e850a908c | |||
9359e676a5 | |||
50a824b9c3 | |||
228511d57f | |||
5ac0d61dca | |||
e067e80459 | |||
3372c87aae | |||
82e8819b29 | |||
e84838ced2 | |||
57b8fce3d7 | |||
f4ece3c40b | |||
5cd5cc3c7a | |||
494ced2d2c | |||
a9785817fc | |||
567869992e | |||
a6c28fcb4c | |||
0023fa77ad | |||
3cc79c4197 |
@ -32,4 +32,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-almalinux-zfs
|
claimName: zfs-mirror-almalinux
|
||||||
|
@ -32,4 +32,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-arch
|
claimName: zfs-mirror-arch
|
||||||
|
@ -13,23 +13,23 @@ spec:
|
|||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mirrorupdate-epel
|
- name: mirrorupdate-epel
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: ghcr.io/0xemma/mirror-updater:v2.0.0
|
image: ghcr.io/0xemma/mirror-updater:v2.0.0
|
||||||
env:
|
env:
|
||||||
- name: TARGET
|
- name: TARGET
|
||||||
value: /ext/mirror/epel
|
value: /ext/mirror/epel
|
||||||
- name: SOURCE
|
- name: SOURCE
|
||||||
value: rsync://mirrors.rit.edu/epel
|
value: rsync://mirrors.rit.edu/epel
|
||||||
- name: LASTUPDATE
|
- name: LASTUPDATE
|
||||||
value: http://rsync.repo.epel.org/epel/timestamp.txt
|
value: http://rsync.repo.epel.org/epel/timestamp.txt
|
||||||
- name: FIRST
|
- name: FIRST
|
||||||
value: "no"
|
value: "no"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
mountPath: /ext/mirror/
|
mountPath: /ext/mirror/
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-truenas
|
claimName: zfs-mirror-bulk
|
||||||
|
@ -32,4 +32,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-kali-images
|
claimName: zfs-mirror-kali-images
|
||||||
|
@ -25,4 +25,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-parrot-zfs
|
claimName: zfs-mirror-parrot
|
||||||
|
@ -32,4 +32,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-rockylinux
|
claimName: zfs-mirror-rockylinux
|
||||||
|
35
Manifests/Mirror/CronJobs/torproject.yml
Normal file
35
Manifests/Mirror/CronJobs/torproject.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: mirrorupdate-torproject
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
schedule: "35 */6 * * *"
|
||||||
|
successfulJobsHistoryLimit: 0
|
||||||
|
failedJobsHistoryLimit: 0
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mirrorupdate-torproject
|
||||||
|
imagePullPolicy: Always
|
||||||
|
image: ghcr.io/0xemma/mirror-updater:v2.0.0
|
||||||
|
env:
|
||||||
|
- name: TARGET
|
||||||
|
value: /ext/mirror/
|
||||||
|
- name: SOURCE
|
||||||
|
value: rsync://rsync.torproject.org/website-mirror/
|
||||||
|
- name: LASTUPDATE
|
||||||
|
value: http://rsync.repo.torproject.org/torproject/timestamp.txt
|
||||||
|
- name: FIRST
|
||||||
|
value: "no"
|
||||||
|
volumeMounts:
|
||||||
|
- name: mirror-pvc
|
||||||
|
mountPath: /ext/mirror/
|
||||||
|
restartPolicy: OnFailure
|
||||||
|
volumes:
|
||||||
|
- name: mirror-pvc
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: mirror-torproject
|
@ -13,23 +13,23 @@ spec:
|
|||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mirrorupdate-ubuntu
|
- name: mirrorupdate-ubuntu
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: ghcr.io/0xemma/mirror-updater:v2.0.0
|
image: ghcr.io/0xemma/mirror-updater:v2.0.0
|
||||||
env:
|
env:
|
||||||
- name: TARGET
|
- name: TARGET
|
||||||
value: /ext/mirror/ubuntu
|
value: /ext/mirror/ubuntu
|
||||||
- name: SOURCE
|
- name: SOURCE
|
||||||
value: rsync://archive.ubuntu.com/ubuntu
|
value: rsync://archive.ubuntu.com/ubuntu
|
||||||
- name: LASTUPDATE
|
- name: LASTUPDATE
|
||||||
value: https://mirror.math.princeton.edu/pub/blackarch/lastupdate
|
value: https://mirror.math.princeton.edu/pub/blackarch/lastupdate
|
||||||
- name: FIRST
|
- name: FIRST
|
||||||
value: "not"
|
value: "not"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
mountPath: /ext/mirror/
|
mountPath: /ext/mirror/
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-truenas
|
claimName: zfs-mirror-bulk
|
||||||
|
@ -32,4 +32,4 @@
|
|||||||
# volumes:
|
# volumes:
|
||||||
# - name: mirror-pvc
|
# - name: mirror-pvc
|
||||||
# persistentVolumeClaim:
|
# persistentVolumeClaim:
|
||||||
# claimName: mirror-truenas
|
# claimName: zfs-mirror-bulk
|
@ -42,4 +42,4 @@ data:
|
|||||||
[void]
|
[void]
|
||||||
path = /mirror/voidlinux
|
path = /mirror/voidlinux
|
||||||
[rockylinux]
|
[rockylinux]
|
||||||
path = /mnt/rockylinux
|
path = /mnt/rockylinux/rockylinux
|
||||||
|
@ -3,6 +3,8 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: mirror-rsync
|
name: mirror-rsync
|
||||||
namespace: default
|
namespace: default
|
||||||
|
annotations:
|
||||||
|
metallb.universe.tf/loadBalancerIPs: 10.69.42.7
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: mirror-rsync
|
app: mirror-rsync
|
||||||
|
@ -26,7 +26,7 @@ spec:
|
|||||||
# - Each init container must complete successfully before the next one starts.
|
# - Each init container must complete successfully before the next one starts.
|
||||||
containers:
|
containers:
|
||||||
- name: mirror-rsync
|
- name: mirror-rsync
|
||||||
image: ghcr.io/0xemma/rsync-daemon-docker:v0.0.2
|
image: ghcr.io/0xemma/rsync-daemon-docker:v1
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
@ -64,29 +64,29 @@ spec:
|
|||||||
name: rsync-config
|
name: rsync-config
|
||||||
- name: mirror
|
- name: mirror
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-truenas
|
claimName: zfs-mirror-bulk
|
||||||
- name: ubuntu-iso
|
- name: ubuntu-iso
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-ubuntu-iso
|
claimName: mirror-ubuntu-iso
|
||||||
- name: kali-iso
|
- name: kali-iso
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-kali-images
|
claimName: zfs-mirror-kali-images
|
||||||
- name: arch
|
- name: arch
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-arch
|
claimName: zfs-mirror-arch
|
||||||
- name: alma
|
- name: alma
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-almalinux-zfs
|
claimName: zfs-mirror-almalinux
|
||||||
- name: parrot
|
- name: parrot
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-parrot-zfs
|
claimName: zfs-mirror-parrot
|
||||||
- name: kali
|
- name: kali
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-kali
|
claimName: zfs-mirror-kali-http
|
||||||
- name: blackarch
|
- name: blackarch
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-blackarch-zfs
|
claimName: mirror-blackarch-zfs
|
||||||
- name: rockylinux
|
- name: rockylinux
|
||||||
persistentVolumeClim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-rockylinux
|
claimName: zfs-mirror-rockylinux
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
@ -23,7 +23,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mirror
|
- name: mirror
|
||||||
image: ghcr.io/0xemma/mirror-main:v1.0.0
|
image: ghcr.io/0xemma/mirror-main:v1.0.2
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 800Mi
|
memory: 800Mi
|
||||||
|
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-almalinux-zfs
|
claimName: zfs-mirror-almalinux
|
||||||
|
@ -9,7 +9,7 @@ spec:
|
|||||||
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/arch`)
|
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/arch`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: mirror-arch
|
- name: zfs-mirror-arch
|
||||||
kind: Service
|
kind: Service
|
||||||
port: 80
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
@ -26,6 +26,6 @@ spec:
|
|||||||
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/arch`)
|
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/arch`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: mirror-arch
|
- name: zfs-mirror-arch
|
||||||
kind: Service
|
kind: Service
|
||||||
port: 80
|
port: 80
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
apiVersion: v1
|
# apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
# kind: PersistentVolumeClaim
|
||||||
metadata:
|
# metadata:
|
||||||
name: mirror-arch
|
# name: zfs-mirror-arch
|
||||||
namespace: default
|
# namespace: default
|
||||||
labels:
|
# labels:
|
||||||
app: mirror-arch
|
# app: zfs-mirror-arch
|
||||||
spec:
|
# spec:
|
||||||
accessModes:
|
# accessModes:
|
||||||
- ReadWriteMany
|
# - ReadWriteMany
|
||||||
resources:
|
# resources:
|
||||||
requests:
|
# requests:
|
||||||
storage: 150Gi
|
# storage: 150Gi
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: mirror-arch
|
name: zfs-mirror-arch
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: mirror-arch
|
app: zfs-mirror-arch
|
||||||
ports:
|
ports:
|
||||||
- name: mirror-arch
|
- name: zfs-mirror-arch
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: mirror-arch
|
name: zfs-mirror-arch
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: mirror-arch
|
app: zfs-mirror-arch
|
||||||
id: mirror-web
|
id: mirror-web
|
||||||
annotations:
|
annotations:
|
||||||
operator.1password.io/auto-restart: "true"
|
operator.1password.io/auto-restart: "true"
|
||||||
@ -12,7 +12,7 @@ spec:
|
|||||||
revisionHistoryLimit: 2
|
revisionHistoryLimit: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: mirror-arch
|
app: zfs-mirror-arch
|
||||||
replicas: 2
|
replicas: 2
|
||||||
strategy:
|
strategy:
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
@ -22,11 +22,11 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: mirror-arch
|
app: zfs-mirror-arch
|
||||||
id: mirror-web
|
id: mirror-web
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mirror-arch
|
- name: zfs-mirror-arch
|
||||||
image: 0xemma/nginx-autoindex:json-4
|
image: 0xemma/nginx-autoindex:json-4
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-arch
|
claimName: zfs-mirror-arch
|
||||||
|
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-truenas
|
claimName: zfs-mirror-bulk
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
apiVersion: v1
|
# apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
# kind: PersistentVolumeClaim
|
||||||
metadata:
|
# metadata:
|
||||||
name: mirror-kali-images
|
# name: mirror-kali-images
|
||||||
namespace: default
|
# namespace: default
|
||||||
labels:
|
# labels:
|
||||||
app: mirror-kali-images
|
# app: mirror-kali-images
|
||||||
spec:
|
# spec:
|
||||||
accessModes:
|
# accessModes:
|
||||||
- ReadWriteMany
|
# - ReadWriteMany
|
||||||
resources:
|
# resources:
|
||||||
requests:
|
# requests:
|
||||||
storage: 250Gi
|
# storage: 250Gi
|
||||||
|
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-kali-images
|
claimName: zfs-mirror-kali-images
|
||||||
|
@ -10,4 +10,4 @@ spec:
|
|||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 700Gi
|
storage: 1000Gi
|
||||||
|
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-kali
|
claimName: zfs-mirror-kali-http
|
||||||
|
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-parrot-zfs
|
claimName: zfs-mirror-parrot
|
||||||
|
@ -9,7 +9,7 @@ spec:
|
|||||||
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/rockylinux`)
|
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/rockylinux`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: mirror-rockylinux
|
- name: zfs-mirror-rockylinux
|
||||||
kind: Service
|
kind: Service
|
||||||
port: 80
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
@ -26,6 +26,6 @@ spec:
|
|||||||
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/rockylinux`)
|
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/rockylinux`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: mirror-rockylinux
|
- name: zfs-mirror-rockylinux
|
||||||
kind: Service
|
kind: Service
|
||||||
port: 80
|
port: 80
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: mirror-rockylinux
|
name: zfs-mirror-rockylinux
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: mirror-rockylinux
|
app: zfs-mirror-rockylinux
|
||||||
spec:
|
spec:
|
||||||
storageClassName: csi-fs-hdd-sc
|
storageClassName: zfs-mirror
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: mirror-rockylinux
|
name: zfs-mirror-rockylinux
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: mirror-rockylinux
|
app: zfs-mirror-rockylinux
|
||||||
ports:
|
ports:
|
||||||
- name: mirror-rockylinux
|
- name: zfs-mirror-rockylinux
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: mirror-rockylinux
|
name: zfs-mirror-rockylinux
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: mirror-rockylinux
|
app: zfs-mirror-rockylinux
|
||||||
id: mirror-web
|
id: mirror-web
|
||||||
annotations:
|
annotations:
|
||||||
operator.1password.io/auto-restart: "true"
|
operator.1password.io/auto-restart: "true"
|
||||||
@ -12,7 +12,7 @@ spec:
|
|||||||
revisionHistoryLimit: 2
|
revisionHistoryLimit: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: mirror-rockylinux
|
app: zfs-mirror-rockylinux
|
||||||
replicas: 2
|
replicas: 2
|
||||||
strategy:
|
strategy:
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
@ -22,11 +22,11 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: mirror-rockylinux
|
app: zfs-mirror-rockylinux
|
||||||
id: mirror-web
|
id: mirror-web
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mirror-rockylinux
|
- name: zfs-mirror-rockylinux
|
||||||
image: 0xemma/nginx-autoindex:json-4
|
image: 0xemma/nginx-autoindex:json-4
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-rockylinux
|
claimName: zfs-mirror-rockylinux
|
||||||
|
31
Manifests/Mirror/Mirror-Web/torproject/ingress.yml
Normal file
31
Manifests/Mirror/Mirror-Web/torproject/ingress.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: mirror-ingress-tls-torproject
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`tor.0xem.ma`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: mirror-torproject
|
||||||
|
kind: Service
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
secretName: emma-tls
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: mirror-ingress-torproject
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
routes:
|
||||||
|
- match: Host(`tor.0xem.ma`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: mirror-torproject
|
||||||
|
kind: Service
|
||||||
|
port: 80
|
14
Manifests/Mirror/Mirror-Web/torproject/pvc.yaml
Normal file
14
Manifests/Mirror/Mirror-Web/torproject/pvc.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: mirror-torproject
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
app: torproject
|
||||||
|
backup: donot
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 40Gi
|
13
Manifests/Mirror/Mirror-Web/torproject/svc.yml
Normal file
13
Manifests/Mirror/Mirror-Web/torproject/svc.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mirror-torproject
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: mirror-torproject
|
||||||
|
ports:
|
||||||
|
- name: mirror-torproject
|
||||||
|
protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
59
Manifests/Mirror/Mirror-Web/torproject/web.yaml
Normal file
59
Manifests/Mirror/Mirror-Web/torproject/web.yaml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mirror-torproject
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
app: mirror-torproject
|
||||||
|
id: mirror-web
|
||||||
|
annotations:
|
||||||
|
operator.1password.io/auto-restart: "true"
|
||||||
|
spec:
|
||||||
|
revisionHistoryLimit: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: mirror-torproject
|
||||||
|
replicas: 2
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 25%
|
||||||
|
maxUnavailable: 25%
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: mirror-torproject
|
||||||
|
id: mirror-web
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mirror-torproject
|
||||||
|
image: 0xemma/nginx-autoindex:json-4
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 8000Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 8000Mi
|
||||||
|
env:
|
||||||
|
- name: API_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: AMPLIFY_API_KEY
|
||||||
|
name: amplify-secret
|
||||||
|
- name: AMPLIFY_IMAGENAME
|
||||||
|
value: "torproject"
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/nginx/html
|
||||||
|
name: mirror-pvc
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
volumes:
|
||||||
|
- name: mirror-pvc
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: mirror-torproject
|
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-truenas
|
claimName: zfs-mirror-bulk
|
||||||
|
@ -56,4 +56,4 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: mirror-pvc
|
- name: mirror-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-truenas
|
claimName: zfs-mirror-bulk
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
apiVersion: v1
|
# apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
# kind: PersistentVolumeClaim
|
||||||
metadata:
|
# metadata:
|
||||||
name: mirror-truenas
|
# name: zfs-mirror-bulk
|
||||||
namespace: default
|
# namespace: default
|
||||||
labels:
|
# labels:
|
||||||
app: mirror-truenas
|
# app: zfs-mirror-bulk
|
||||||
spec:
|
# spec:
|
||||||
accessModes:
|
# accessModes:
|
||||||
- ReadWriteMany
|
# - ReadWriteMany
|
||||||
resources:
|
# resources:
|
||||||
requests:
|
# requests:
|
||||||
storage: 11000Gi
|
# storage: 11000Gi
|
||||||
# storageClassName: freenas-nfs-csi
|
# # storageClassName: freenas-nfs-csi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user