🎉 Initial commit
This commit is contained in:
commit
1a95f44850
2 changed files with 102 additions and 0 deletions
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Git - ForgeJo
|
||||
|
||||
Configuration of the ForgeJO (Gitea open source fork) through ArgoCD
|
||||
99
forgejo.yaml
Normal file
99
forgejo.yaml
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: forgejo
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: forgejo-data
|
||||
namespace: forgejo
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi # Largeur pour tes dépôts et tes images Docker
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: forgejo
|
||||
namespace: forgejo
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: forgejo
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: forgejo
|
||||
spec:
|
||||
containers:
|
||||
- name: forgejo
|
||||
image: codeberg.org/forgejo/forgejo:8
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: http
|
||||
- containerPort: 22
|
||||
name: ssh
|
||||
env:
|
||||
- name: FORGEJO__database__DB_TYPE
|
||||
value: sqlite3 # Léger pour ton VPS
|
||||
- name: FORGEJO__server__DOMAIN
|
||||
value: git.qcampos.fr
|
||||
- name: FORGEJO__server__ROOT_URL
|
||||
value: https://git.qcampos.fr/
|
||||
# Activation du Registre d'images
|
||||
- name: FORGEJO__packages__ENABLED
|
||||
value: "true"
|
||||
# Activation des Actions (CI/CD)
|
||||
- name: FORGEJO__actions__ENABLED
|
||||
value: "true"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: forgejo-data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: forgejo-service
|
||||
namespace: forgejo
|
||||
spec:
|
||||
selector:
|
||||
app: forgejo
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 3000
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: forgejo-ingress
|
||||
namespace: forgejo
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-http"
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- git.qcampos.fr
|
||||
secretName: git-qcampos-tls
|
||||
rules:
|
||||
- host: git.qcampos.fr
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: forgejo-service
|
||||
port:
|
||||
number: 80
|
||||
Loading…
Reference in a new issue