-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s.yaml
41 lines (38 loc) · 868 Bytes
/
k8s.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: lmp-mirrors
namespace: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 60Gi
storageClassName: standard-rwo
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: mirror-lmp
namespace: data
spec:
schedule: 3 */4 * * *
jobTemplate:
spec:
template:
spec:
nodeSelector:
infra.foundries.io/gke-nodepool: data
restartPolicy: Never
containers:
- name: mirror-lmp
image: ghcr.io/lmp-mirrors/mirror-lmp:main
imagePullPolicy: Always
volumeMounts:
- mountPath: /mirrors
name: lmp-mirrors
volumes:
- name: lmp-mirrors
persistentVolumeClaim:
claimName: lmp-mirrors