Skip to content

Commit

Permalink
Fix persistent volume
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaiacs committed Jan 3, 2025
1 parent 38ca8e4 commit f30d28a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ansible/roles/harbor/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
storage: "{{ harbor_jobservice_storage }}"
volumeMode: Filesystem
accessModes:
- ReadWriteMany
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: "{{ harbor_storage_class_name }}"
local:
Expand Down Expand Up @@ -47,7 +47,7 @@
storage: "{{ harbor_registry_storage }}"
volumeMode: Filesystem
accessModes:
- ReadWriteMany
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: "{{ harbor_storage_class_name }}"
local:
Expand All @@ -70,17 +70,17 @@
metadata:
name: "{{ harbor_name }}-redis"
labels:
harbor: registry
harbor: redis
spec:
capacity:
storage: "{{ harbor_redis_storage }}"
volumeMode: Filesystem
accessModes:
- ReadWriteMany
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: "{{ harbor_storage_class_name }}"
local:
path: /harbor/registry
path: /harbor/redis
nodeAffinity:
required:
nodeSelectorTerms:
Expand All @@ -99,17 +99,17 @@
metadata:
name: "{{ harbor_name }}-trivy"
labels:
harbor: registry
harbor: trivy
spec:
capacity:
storage: "{{ harbor_trivy_storage }}"
volumeMode: Filesystem
accessModes:
- ReadWriteMany
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: "{{ harbor_storage_class_name }}"
local:
path: /harbor/registry
path: /harbor/trivy
nodeAffinity:
required:
nodeSelectorTerms:
Expand All @@ -128,17 +128,17 @@
metadata:
name: "{{ harbor_name }}-database"
labels:
harbor: registry
harbor: database
spec:
capacity:
storage: "{{ harbor_database_storage }}"
volumeMode: Filesystem
accessModes:
- ReadWriteMany
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: "{{ harbor_storage_class_name }}"
local:
path: /harbor/registry
path: /harbor/database
nodeAffinity:
required:
nodeSelectorTerms:
Expand Down

0 comments on commit f30d28a

Please sign in to comment.