add app gitea

This commit is contained in:
2024-06-25 10:03:53 +10:00
parent e89d22f03d
commit 21371c5a88
2 changed files with 58 additions and 17 deletions

View File

@@ -17,26 +17,21 @@ spec:
remediation: remediation:
retries: 3 retries: 3
values: values:
adminUsername: bn_user adminUsername: ${admin_username}
adminPassword: "" adminPassword: ${admin_password}
adminEmail: user@example.com adminEmail: ${admin_email}
appName: example appName: app_name
containerPorts:
http: 3003
persistence: persistence:
existingClaim: "" existingClaim: gitea-pvc
service: service:
ports:
http: 80
ssh: 22
nodePorts: nodePorts:
http: "" http: 30888
ssh: "" ssh: 30822
postgresql: postgresql:
enabled: false enabled: false
externalDatabase: externalDatabase:
host: "" host: ${db_host}
port: 5432 port: ${db_port}
user: postgres user: ${db_user}
database: gitea database: ${db_name}
password: "" password: ${db_password}

View File

@@ -0,0 +1,46 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: gitea-pv
namespace: gitea
labels:
type: local
spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 32Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
local:
path: "/mnt/nfs/AppData/gitea"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: gitea-pvc
namespace: gitea
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- rpi5-cluster-node-3
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gitea-pvc
namespace: gitea
labels:
name: gitea-pvc
spec:
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 32Gi