Create Rocky
This commit is contained in:
parent
fed7bad363
commit
8ddbe875fa
35
Manifests/Mirror/CronJobs/rockylinux.yml
Normal file
35
Manifests/Mirror/CronJobs/rockylinux.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: mirrorupdate-rockylinux
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
schedule: "48 */5 * * *"
|
||||||
|
successfulJobsHistoryLimit: 0
|
||||||
|
failedJobsHistoryLimit: 0
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mirrorupdate-rockylinux
|
||||||
|
imagePullPolicy: Always
|
||||||
|
image: ghcr.io/0xemma/mirror-updater:v2.0.0
|
||||||
|
env:
|
||||||
|
- name: TARGET
|
||||||
|
value: /ext/mirror/rockylinux
|
||||||
|
- name: SOURCE
|
||||||
|
value: rsync://mirror.cpsc.ucalgary.ca/rocky
|
||||||
|
- name: LASTUPDATE
|
||||||
|
value: https://mirror.math.princeton.edu/pub/blackarch/lastupdate
|
||||||
|
- name: FIRST
|
||||||
|
value: "not"
|
||||||
|
volumeMounts:
|
||||||
|
- name: mirror-pvc
|
||||||
|
mountPath: /ext/mirror/
|
||||||
|
restartPolicy: OnFailure
|
||||||
|
volumes:
|
||||||
|
- name: mirror-pvc
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: mirror-rockylinux
|
@ -41,3 +41,5 @@ data:
|
|||||||
path = /mirror/epel
|
path = /mirror/epel
|
||||||
[void]
|
[void]
|
||||||
path = /mirror/voidlinux
|
path = /mirror/voidlinux
|
||||||
|
[rockylinux]
|
||||||
|
path = /mnt/rockylinux
|
||||||
|
@ -56,6 +56,8 @@ spec:
|
|||||||
mountPath: /mnt/kali
|
mountPath: /mnt/kali
|
||||||
- name: blackarch
|
- name: blackarch
|
||||||
mountPath: /mnt/blackarch
|
mountPath: /mnt/blackarch
|
||||||
|
- name: rockylinux
|
||||||
|
mountPath: /mnt/rockylinux
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
@ -84,4 +86,7 @@ spec:
|
|||||||
- name: blackarch
|
- name: blackarch
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mirror-blackarch-zfs
|
claimName: mirror-blackarch-zfs
|
||||||
|
- name: rockylinux
|
||||||
|
persistentVolumeClim:
|
||||||
|
claimName: mirror-rockylinux
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
31
Manifests/Mirror/Mirror-Web/rockylinux/ingress.yml
Normal file
31
Manifests/Mirror/Mirror-Web/rockylinux/ingress.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: mirror-ingress-tls-rockylinux
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/rockylinux`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: mirror-rockylinux
|
||||||
|
kind: Service
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
secretName: emma-tls
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: mirror-ingress-rockylinux
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
routes:
|
||||||
|
- match: Host(`mirror.0xem.ma`) && PathPrefix(`/rockylinux`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: mirror-rockylinux
|
||||||
|
kind: Service
|
||||||
|
port: 80
|
13
Manifests/Mirror/Mirror-Web/rockylinux/svc.yml
Normal file
13
Manifests/Mirror/Mirror-Web/rockylinux/svc.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mirror-rockylinux
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: mirror-rockylinux
|
||||||
|
ports:
|
||||||
|
- name: mirror-rockylinux
|
||||||
|
protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
59
Manifests/Mirror/Mirror-Web/rockylinux/web.yaml
Normal file
59
Manifests/Mirror/Mirror-Web/rockylinux/web.yaml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mirror-rockylinux
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
app: mirror-rockylinux
|
||||||
|
id: mirror-web
|
||||||
|
annotations:
|
||||||
|
operator.1password.io/auto-restart: "true"
|
||||||
|
spec:
|
||||||
|
revisionHistoryLimit: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: mirror-rockylinux
|
||||||
|
replicas: 2
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 25%
|
||||||
|
maxUnavailable: 25%
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: mirror-rockylinux
|
||||||
|
id: mirror-web
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mirror-rockylinux
|
||||||
|
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: "rockylinux"
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/nginx/html
|
||||||
|
name: mirror-rockylinux
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
volumes:
|
||||||
|
- name: mirror-pvc
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: mirror-rockylinux
|
Loading…
x
Reference in New Issue
Block a user