central storage
This commit is contained in:
parent
92ae36aacd
commit
96b03e4b9d
3 changed files with 34 additions and 18 deletions
13
active/storage.yaml
Normal file
13
active/storage.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: data
|
||||
namespace: minecraft
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
limits:
|
||||
storage: 4Gi
|
||||
|
|
@ -2,14 +2,14 @@ apiVersion: v1
|
|||
kind: Namespace
|
||||
metadata:
|
||||
name: superflat
|
||||
namespace: superflat
|
||||
namespace: minecraft
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: superflat
|
||||
namespace: superflat
|
||||
namespace: minecraft
|
||||
spec:
|
||||
selector:
|
||||
app: superflat
|
||||
|
|
@ -24,7 +24,7 @@ apiVersion: apps/v1
|
|||
kind: Deployment
|
||||
metadata:
|
||||
name: superflat
|
||||
namespace: superflat
|
||||
namespace: minecraft
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
|
|
@ -61,23 +61,9 @@ spec:
|
|||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: data
|
||||
subPath: superflat
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: data
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: data
|
||||
namespace: superflat
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
limits:
|
||||
storage: 4Gi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue