Redeploy Harbor with StorageClass

This commit is contained in:
Danny Bessems 2020-10-30 12:49:21 +01:00
parent 732fd4229e
commit 3120186df9
3 changed files with 11 additions and 3 deletions

View File

@ -12,25 +12,31 @@ persistence:
persistentVolumeClaim:
registry:
storageClass: "harbor"
subPath: registry
accessMode: ReadWriteMany
size: 5Gi
chartmuseum:
storageClass: "harbor"
subPath: chartmuseum
accessMode: ReadWriteMany
size: 5Gi
jobservice:
storageClass: "harbor"
subPath: jobservice
accessMode: ReadWriteMany
size: 1Gi
database:
storageClass: "harbor-db"
subPath: db
accessMode: ReadWriteMany
size: 1Gi
redis:
storageClass: "harbor-db"
subPath: redis
accessMode: ReadWriteMany
size: 1Gi
trivy:
storageClass: "harbor"
subPath: trivy
accessMode: ReadWriteMany
size: 1Gi

View File

@ -7,7 +7,7 @@ parameters:
source: "//192.168.11.225/K3s.StorageClass/harbor"
csi.storage.k8s.io/node-stage-secret-name: "smb-credentials"
csi.storage.k8s.io/node-stage-secret-namespace: "default"
createSubDir: "true" # optional: create a sub dir for new volume
createSubDir: "false" # optional: create a sub dir for new volume
reclaimPolicy: Retain # only retain is supported
volumeBindingMode: Immediate
mountOptions:
@ -25,7 +25,7 @@ parameters:
source: "//192.168.11.225/K3s.StorageClass/harbor-db"
csi.storage.k8s.io/node-stage-secret-name: "smb-credentials"
csi.storage.k8s.io/node-stage-secret-namespace: "default"
createSubDir: "true" # optional: create a sub dir for new volume
createSubDir: "false" # optional: create a sub dir for new volume
reclaimPolicy: Retain # only retain is supported
volumeBindingMode: Immediate
mountOptions:

View File

@ -53,7 +53,9 @@ data:
spamasaurus.com.conf: |
$HTTP["host"] == "spamasaurus.com" {
server.document-root = "/var/www/spamasaurus.com/public"
}
index-file.names += ("spamasaurusRex.login.php")
}
sw.itch.fyi.conf: |
$HTTP["host"] == "sw.itch.fyi" {
server.document-root = "/var/www/sw.itch.fyi/"