feat: with longhorn

This commit is contained in:
Kasper Juul Hermansen 2023-04-06 01:47:08 +02:00
commit 0553f3f9d0
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
3 changed files with 4324 additions and 0 deletions

4294
templates/longhorn.yaml Normal file

File diff suppressed because it is too large Load Diff

19
templates/pod.yaml Normal file
View File

@ -0,0 +1,19 @@
apiVersion: v1
kind: Pod
metadata:
name: volume-test
namespace: default
spec:
containers:
- name: volume-test
image: nginx:stable-alpine
imagePullPolicy: IfNotPresent
volumeMounts:
- name: volv
mountPath: /data
ports:
- containerPort: 80
volumes:
- name: volv
persistentVolumeClaim:
claimName: clank-postgres-storage-pvc

11
templates/pvc.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: clank-postgres-storage-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 2Gi