central storage

This commit is contained in:
Waylon Walker 2024-02-11 21:05:05 -06:00
parent 92ae36aacd
commit 96b03e4b9d
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
3 changed files with 34 additions and 18 deletions

13
active/storage.yaml Normal file
View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data
namespace: minecraft
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
limits:
storage: 4Gi

View file

@ -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