add harbor
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
d8e2543152
commit
8ca8f0b8ea
45 changed files with 322 additions and 805 deletions
131
apps/harbor/templates/pvs.yaml
Normal file
131
apps/harbor/templates/pvs.yaml
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
# Harbor: Registry
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: harbor-registry-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 200Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: harbor-iscsi
|
||||
# --- PRE-BINDING LOCK ---
|
||||
claimRef:
|
||||
namespace: harbor
|
||||
name: harbor-registry
|
||||
iscsi:
|
||||
targetPortal: truenas.local.gwg313.xyz
|
||||
iqn: iqn.2005-10.org.freenas.ctl:harbor-registry
|
||||
lun: 1
|
||||
fsType: ext4
|
||||
readOnly: false
|
||||
chapAuthDiscovery: true
|
||||
chapAuthSession: true
|
||||
secretRef:
|
||||
name: harbor-iscsi-auth
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: harbor-jobservice-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: harbor-iscsi
|
||||
claimRef:
|
||||
namespace: harbor
|
||||
name: harbor-jobservice
|
||||
iscsi:
|
||||
targetPortal: truenas.local.gwg313.xyz
|
||||
iqn: iqn.2005-10.org.freenas.ctl:harbor-jobservice
|
||||
lun: 0
|
||||
fsType: ext4
|
||||
readOnly: false
|
||||
chapAuthDiscovery: true
|
||||
chapAuthSession: true
|
||||
secretRef:
|
||||
name: harbor-iscsi-auth
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: harbor-database-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: harbor-iscsi
|
||||
claimRef:
|
||||
namespace: harbor
|
||||
name: harbor-database
|
||||
iscsi:
|
||||
targetPortal: truenas.local.gwg313.xyz
|
||||
iqn: iqn.2005-10.org.freenas.ctl:harbor-database
|
||||
lun: 2
|
||||
fsType: ext4
|
||||
readOnly: false
|
||||
chapAuthDiscovery: true
|
||||
chapAuthSession: true
|
||||
secretRef:
|
||||
name: harbor-iscsi-auth
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: harbor-redis-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: harbor-iscsi
|
||||
claimRef:
|
||||
namespace: harbor
|
||||
name: harbor-redis
|
||||
iscsi:
|
||||
targetPortal: truenas.local.gwg313.xyz
|
||||
iqn: iqn.2005-10.org.freenas.ctl:harbor-redis
|
||||
lun: 3
|
||||
fsType: ext4
|
||||
readOnly: false
|
||||
chapAuthDiscovery: true
|
||||
chapAuthSession: true
|
||||
secretRef:
|
||||
name: harbor-iscsi-auth
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: harbor-trivy-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: harbor-iscsi
|
||||
claimRef:
|
||||
namespace: harbor
|
||||
name: harbor-trivy
|
||||
iscsi:
|
||||
targetPortal: truenas.local.gwg313.xyz
|
||||
iqn: iqn.2005-10.org.freenas.ctl:harbor-trivy
|
||||
lun: 4
|
||||
fsType: ext4
|
||||
readOnly: false
|
||||
chapAuthDiscovery: true
|
||||
chapAuthSession: true
|
||||
secretRef:
|
||||
name: harbor-iscsi-auth
|
||||
Loading…
Add table
Add a link
Reference in a new issue