initial git commit saving configs
This commit is contained in:
34
gitea/NOTES.MD
Normal file
34
gitea/NOTES.MD
Normal file
@@ -0,0 +1,34 @@
|
||||
```
|
||||
|
||||
kubectl create namespace gitea
|
||||
|
||||
helm repo add gitea-charts https://dl.gitea.com/charts/
|
||||
helm repo update
|
||||
|
||||
helm upgrade --install gitea gitea-charts/gitea \
|
||||
--namespace gitea \
|
||||
-f values.yaml
|
||||
|
||||
```
|
||||
|
||||
## PV / PVC
|
||||
|
||||
```
|
||||
kubectl create -f ./pv-gitea.yaml
|
||||
kubectl create -f ./pvc-gitea.yaml
|
||||
```
|
||||
|
||||
## Check
|
||||
|
||||
```
|
||||
kubectl -n gitea get pods,pvc,ingress
|
||||
kubectl -n gitea rollout status deploy/gitea
|
||||
kubectl -n gitea get secret
|
||||
```
|
||||
|
||||
## Show chart values - usefuel for override in value.yaml
|
||||
```
|
||||
helm show values gitea-charts/gitea | grep -A20 -B5 -i claim
|
||||
helm show values gitea-charts/gitea | grep -A20 -B5 -i persistence
|
||||
helm show values gitea-charts/gitea | grep -A20 -B5 -i storage
|
||||
```
|
||||
22
gitea/pv-gitea.yaml
Normal file
22
gitea/pv-gitea.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: pv-gitea-data
|
||||
spec:
|
||||
capacity:
|
||||
storage: 20Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: gitea-data
|
||||
local:
|
||||
path: /storage/gitea
|
||||
nodeAffinity:
|
||||
required:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- master
|
||||
12
gitea/pvc-gitea.yaml
Normal file
12
gitea/pvc-gitea.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pvc-gitea-data
|
||||
namespace: gitea
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
storageClassName: gitea-data
|
||||
92
gitea/values.yaml
Normal file
92
gitea/values.yaml
Normal file
@@ -0,0 +1,92 @@
|
||||
# gitea-values.yaml
|
||||
image:
|
||||
rootless: true
|
||||
|
||||
strategy:
|
||||
type: Recreate
|
||||
|
||||
postgresql:
|
||||
enabled: false
|
||||
|
||||
postgresql-ha:
|
||||
enabled: false
|
||||
|
||||
valkey-cluster:
|
||||
enabled: false
|
||||
|
||||
redis-cluster:
|
||||
enabled: false
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
create: false
|
||||
claimName: pvc-gitea-data
|
||||
size: 20Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
|
||||
gitea:
|
||||
admin:
|
||||
username: giteaadmin
|
||||
password: "51aad51@#zé"
|
||||
email: "admin@immich-ad.ovh"
|
||||
|
||||
config:
|
||||
server:
|
||||
DOMAIN: git.immich-ad.ovh
|
||||
ROOT_URL: https://git.immich-ad.ovh/
|
||||
SSH_DOMAIN: git.immich-ad.ovh
|
||||
PROTOCOL: http
|
||||
START_SSH_SERVER: false
|
||||
|
||||
database:
|
||||
DB_TYPE: sqlite3
|
||||
|
||||
service:
|
||||
DISABLE_REGISTRATION: true
|
||||
REQUIRE_SIGNIN_VIEW: false
|
||||
REGISTER_MANUAL_CONFIRM: false
|
||||
|
||||
session:
|
||||
PROVIDER: memory
|
||||
|
||||
cache:
|
||||
ADAPTER: memory
|
||||
|
||||
queue:
|
||||
TYPE: level
|
||||
|
||||
service:
|
||||
http:
|
||||
type: ClusterIP
|
||||
port: 3000
|
||||
|
||||
ssh:
|
||||
enabled: false
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
className: traefik
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
hosts:
|
||||
- host: git.immich-ad.ovh
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- secretName: gitea-tls
|
||||
hosts:
|
||||
- git.immich-ad.ovh
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 1Gi
|
||||
|
||||
test:
|
||||
enabled: false
|
||||
Reference in New Issue
Block a user