Add a pvc
This commit is contained in:
parent
fa84cb2546
commit
ea3a968fb1
1 changed files with 15 additions and 0 deletions
|
@ -1,6 +1,21 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Template
|
kind: Template
|
||||||
objects:
|
objects:
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: ${APP}-data
|
||||||
|
labels:
|
||||||
|
app: ${APP}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
durability: ${STORAGE_DURABILITY}
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: DeploymentConfig
|
kind: DeploymentConfig
|
||||||
metadata:
|
metadata:
|
||||||
|
|
Loading…
Reference in a new issue