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:
retries: 3
values:
adminUsername: bn_user
adminPassword: ""
adminEmail: user@example.com
appName: example
containerPorts:
http: 3003
adminUsername: ${admin_username}
adminPassword: ${admin_password}
adminEmail: ${admin_email}
appName: app_name
persistence:
existingClaim: ""
existingClaim: gitea-pvc
service:
ports:
http: 80
ssh: 22
nodePorts:
http: ""
ssh: ""
http: 30888
ssh: 30822
postgresql:
enabled: false
externalDatabase:
host: ""
port: 5432
user: postgres
database: gitea
password: ""
host: ${db_host}
port: ${db_port}
user: ${db_user}
database: ${db_name}
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