Skip to content

Commit

Permalink
fix: resize pvs
Browse files Browse the repository at this point in the history
  • Loading branch information
kurokobo committed Mar 5, 2022
1 parent 3a1331a commit 5779084
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion backup/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 2Gi
storage: 4Gi
storageClassName: awx-backup-volume
hostPath:
path: /data/backup
2 changes: 1 addition & 1 deletion backup/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
volumeMode: Filesystem
resources:
requests:
storage: 2Gi
storage: 4Gi
storageClassName: awx-backup-volume
2 changes: 1 addition & 1 deletion containergroup/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 5Gi
storage: 4Gi
storageClassName: demo-volume
hostPath:
path: /data/demo
2 changes: 1 addition & 1 deletion containergroup/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
volumeMode: Filesystem
resources:
requests:
storage: 5Gi
storage: 4Gi
storageClassName: demo-volume
2 changes: 1 addition & 1 deletion galaxy/all-in-one/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 10Gi
storage: 8Gi
storageClassName: galaxy-volume
hostPath:
path: /data/galaxy
2 changes: 1 addition & 1 deletion galaxy/all-in-one/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
volumeMode: Filesystem
resources:
requests:
storage: 10Gi
storage: 8Gi
storageClassName: galaxy-volume
4 changes: 2 additions & 2 deletions galaxy/pulp/galaxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ spec:
postgres_storage_class: galaxy-postgres-volume
postgres_storage_requirements:
requests:
storage: 2Gi
storage: 8Gi
redis_storage_class: galaxy-redis-volume

storage_type: file
file_storage_storage_class: galaxy-pulp-volume
file_storage_access_mode: ReadWriteOnce
file_storage_size: 10Gi
file_storage_size: 8Gi

pulp_settings:
GALAXY_FEATURE_FLAGS:
Expand Down
4 changes: 2 additions & 2 deletions galaxy/pulp/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 2Gi
storage: 8Gi
storageClassName: galaxy-postgres-volume
hostPath:
path: /data/galaxy/postgres
Expand All @@ -23,7 +23,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 10Gi
storage: 8Gi
storageClassName: galaxy-pulp-volume
hostPath:
path: /data/galaxy/pulp
Expand Down
2 changes: 1 addition & 1 deletion git/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 5Gi
storage: 4Gi
storageClassName: git-volume
hostPath:
path: /data/git
2 changes: 1 addition & 1 deletion git/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
volumeMode: Filesystem
resources:
requests:
storage: 2Gi
storage: 4Gi
storageClassName: git-volume
2 changes: 1 addition & 1 deletion registry/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 5Gi
storage: 8Gi
storageClassName: registry-volume
hostPath:
path: /data/registry
2 changes: 1 addition & 1 deletion registry/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
volumeMode: Filesystem
resources:
requests:
storage: 5Gi
storage: 8Gi
storageClassName: registry-volume
4 changes: 2 additions & 2 deletions restore/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 2Gi
storage: 8Gi
storageClassName: awx-postgres-volume
hostPath:
path: /data/postgres
Expand Down Expand Up @@ -38,7 +38,7 @@ spec:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
capacity:
storage: 2Gi
storage: 4Gi
storageClassName: awx-backup-volume
hostPath:
path: /data/backup
2 changes: 1 addition & 1 deletion restore/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ spec:
volumeMode: Filesystem
resources:
requests:
storage: 2Gi
storage: 4Gi
storageClassName: awx-backup-volume
4 changes: 2 additions & 2 deletions tips/external-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
# postgres_storage_class: awx-postgres-volume 👈👈👈
# postgres_storage_requirements: 👈👈👈
# requests: 👈👈👈
# storage: 2Gi 👈👈👈
# storage: 8Gi 👈👈👈
projects_persistence: true
projects_existing_claim: awx-projects-claim
Expand Down Expand Up @@ -100,7 +100,7 @@ Comment out following unnecessary lines which related to `awx-postgres-volume` i
# - ReadWriteOnce 👈👈👈
# persistentVolumeReclaimPolicy: Retain 👈👈👈
# capacity: 👈👈👈
# storage: 2Gi 👈👈👈
# storage: 8Gi 👈👈👈
# storageClassName: awx-postgres-volume 👈👈👈
# hostPath: 👈👈👈
# path: /data/postgres 👈👈👈
Expand Down
2 changes: 1 addition & 1 deletion tips/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Check the `STATUS` of your PVs and ensure your PVs doesn't have `Available` or `
$ kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
awx-projects-volume 2Gi RWO Retain Released awx/awx-projects-claim awx-projects-volume 17h
awx-postgres-volume 2Gi RWO Retain Released awx/postgres-awx-postgres-0 awx-postgres-volume 17h
awx-postgres-volume 8Gi RWO Retain Released awx/postgres-awx-postgres-0 awx-postgres-volume 17h
```

Probably this is the second (or more) time to deploy AWX for you. These PVs which have `Released` state are tied to your old (and probably no longer exists now) PVCs you created in the past.
Expand Down

0 comments on commit 5779084

Please sign in to comment.