Add storage
All checks were successful
Gitea Actions Demo / lint (push) Successful in 1m29s
Gitea Actions Demo / test (push) Successful in 1m18s
Gitea Actions Demo / release-image (push) Successful in 1m3s

This commit is contained in:
Ryan Cavicchioni 2024-07-27 19:14:48 -05:00
parent 7fc61df477
commit cd66b1f2aa
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
3 changed files with 19 additions and 0 deletions

View File

@ -41,3 +41,10 @@ spec:
port: 4567 port: 4567
initialDelaySeconds: 5 initialDelaySeconds: 5
periodSeconds: 5 periodSeconds: 5
volumeMounts:
mountPath: /data
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: volume-claim

View File

@ -3,6 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: toy namespace: toy
resources: resources:
- storage.yaml
- deployment.yaml - deployment.yaml
- services.yaml - services.yaml
- ingress.yaml - ingress.yaml

11
kustomize/storage.yaml Normal file
View File

@ -0,0 +1,11 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: volume-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi