Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent volumes are created dynamically, w/ default storageClass #363

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions community-edition/generate_script/hcce.yam
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ spec:
key: DB_NAME
volumeMounts:
- name: postgresql-data
mountPath: /var/lib/postgresql/data
mountPath: /var/lib/postgresql
volumes:
- name: postgresql-data
hostPath:
Expand Down Expand Up @@ -1061,14 +1061,6 @@ spec:
selector:
app: photomnemonic
---
apiVersion: v1
kind: Secret
metadata:
name: configs
namespace: $Namespace
stringData:
PSQL: $PSQL
---
########################################################################
###################### dialog ######################################
########################################################################
Expand Down
43 changes: 1 addition & 42 deletions community-edition/generate_script/persistent_volumes.yam
Original file line number Diff line number Diff line change
@@ -1,45 +1,6 @@
######################################################################################
################################# persistent volume ##################################
######################################################################################
apiVersion: v1
kind: PersistentVolume
metadata:
name: pgsql-pv
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: $PERSISTENT_VOLUME_SIZE
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
claimRef:
name: pgsql-pvc
namespace: $Namespace
hostPath:
path: "/mnt/pgsql_data"
type: DirectoryOrCreate
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: ret-pv
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: $PERSISTENT_VOLUME_SIZE
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
claimRef:
name: ret-pvc
namespace: $Namespace
hostPath:
path: "/mnt/ret_storage_data"
type: DirectoryOrCreate
---
######################################################################################
############################## persistent volume claim ###############################
Expand All @@ -50,9 +11,8 @@ metadata:
name: pgsql-pvc
namespace: $Namespace
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
- ReadWriteOncePod
resources:
requests:
storage: $PERSISTENT_VOLUME_SIZE
Expand All @@ -63,7 +23,6 @@ metadata:
name: ret-pvc
namespace: $Namespace
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
Expand Down