Skip to content

Commit

Permalink
forgejo
Browse files Browse the repository at this point in the history
  • Loading branch information
angelnu committed Dec 28, 2024
1 parent f78b3f9 commit c40d1f8
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion apps/default/forgejo/networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: gitea
name: forgejo
spec:
podSelector:
matchLabels:
Expand Down
8 changes: 4 additions & 4 deletions apps/default/forgejo/nfs.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-gitea
name: nfs-forgejo
spec:
storageClassName: gitea-storageclass
storageClassName: forgejo-storageclass
capacity:
storage: 18T
accessModes:
Expand All @@ -18,11 +18,11 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-gitea
name: nfs-forgejo
spec:
accessModes:
- ReadWriteMany
storageClassName: gitea-storageclass
storageClassName: forgejo-storageclass
resources:
requests:
storage: 1T
4 changes: 2 additions & 2 deletions apps/default/forgejo/release-db.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: gitea-db
name: forgejo-db
spec:
interval: 5m
chart:
Expand Down Expand Up @@ -48,6 +48,6 @@ spec:

valuesFrom:
- kind: Secret
name: "gitea-helm-values"
name: "forgejo-helm-values"
valuesKey: postgres.yaml
optional: false
26 changes: 13 additions & 13 deletions apps/default/forgejo/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ spec:
namespace: flux-system
interval: 5m
dependsOn:
- name: gitea-db
# All values at https://gitea.com/gitea/helm-chart
- name: forgejo-db
# All values at https://code.forgejo.org/forgejo-helm/forgejo-helm
values:
service:
ssh:
type: LoadBalancer
port: 2222
annotations:
metallb.universe.tf/loadBalancerIPs: "${CLUSTER_EXTERNAL_SUBNET_PREFIX}.${CLUSTER_LB_GITEA}"
metallb.universe.tf/loadBalancerIPs: "${CLUSTER_EXTERNAL_SUBNET_PREFIX}.${CLUSTER_LB_FORGEJO}"
ingress:
enabled: true
annotations:
hajimari.io/enable: "true"
hajimari.io/icon: simple-icons:gitea
hajimari.io/icon: simple-icons:forgejo
hajimari.io/info: Home Source Repository
hajimari.io/group: tools
nginx.ingress.kubernetes.io/proxy-body-size: "8000m"
Expand All @@ -44,7 +44,7 @@ spec:
persistence:
enabled: true
create: false
claimName: nfs-gitea
claimName: nfs-forgejo

# databases
redis-cluster:
Expand All @@ -56,13 +56,13 @@ spec:

gitea:
admin:
username: gitea_admin
username: admin
# password: set in secret
email: "gitea@${CLUSTER_DOMAIN}"
email: "forgejo@${CLUSTER_DOMAIN}"

# See https://docs.gitea.io/en-us/config-cheat-sheet/
# See https://forgejo.org/docs/latest/admin/config-cheat-sheet/
config:
APP_NAME: "Gitea for ${CLUSTER_DOMAIN}: Git with a cup of tea"
APP_NAME: "Forgejo for ${CLUSTER_DOMAIN}"
#RUN_MODE: dev
server:
SSH_PORT : 2222
Expand All @@ -72,7 +72,7 @@ spec:
#SECRET_KEY: set in secret
database:
DB_TYPE: postgres
HOST: gitea-db-zalando-postgres-cluster-postgres:5432
HOST: forgejo-db-zalando-postgres-cluster-postgres:5432
SSL_MODE: require
NAME: gitea
#PASSWD: set in secret
Expand All @@ -93,12 +93,12 @@ spec:
SMTP_ADDR: "${CLUSTER_MAIL_SERVER}"
SMTP_PORT: "${CLUSTER_MAIL_SERVER_PORT}"
PROTOCOL: smtp
FROM: "gitea@${CLUSTER_DOMAIN}"
FROM: "forgejo@${CLUSTER_DOMAIN}"
USER: ""
PASSWD: ""

valuesFrom:
- kind: Secret
name: "gitea-helm-values"
valuesKey: gitea.yaml
name: "forgejo-helm-values"
valuesKey: forgejo.yaml
optional: false
17 changes: 9 additions & 8 deletions apps/default/forgejo/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
apiVersion: v1
kind: Secret
metadata:
name: gitea-helm-values
name: forgejo-helm-values
#Password generate with https://generate.plus/en/base64
stringData:
gitea.yaml: ENC[AES256_GCM,data:w1IWdmha5e8jNAEB42esOVDjxK66MJTHmXqHC66gbc8i/VGte+WAKKcwrcLqgYba6L90zC4+EHNMDnS5VqXUnOnElVEmb6MgV7BMsJJ9Tv8cI32NhDyHwAOyyw8dV0zFc1pCEy2zrj1olHuassF8h7bE4ip2TrLZbiBiOUML/KZHV2HKsKsLohqzdMZYHZI0xUcVGsbuxhEO3uTEfx+zaO7+RON5Xxp5mmDHlTVigJUkFVK+/pq06lORsSqcTI64VR54erE/yhpAHmGDpS1kzaIgVOxpGfjZAm39Y/wpwXEAeHMSAZgZMFTTWKjXXWfvzsz285cV10ayco5Mvyf68ytgCiMxGDSNG/M41f5XhnLaNNGnjZsa8/DAKHc2DvOr,iv:bY/vPbAVBIaME6ZbOBW7/QcT+yrs4CaPE8ZWDsuNH38=,tag:wAjffOt8SvgiXmb2dDULhw==,type:str]
forgejo.yaml: ENC[AES256_GCM,data:SwjFrhXZxVhmtATF9+6ZuNC2tmBG6FKVsgdo1mUrK8SqMLl/wMZhX6aveKbbXsN60MbchtMBIU5DKhG2CCcfYuE94QfkGX48u52er3LT3MvPU8/Qe0RqtXfPpZ4us6c9ihy0dLw6WkH3tVD4XdC1krvdgP2gE3rOzSENWiQCugVoYqixhCxKk5RvlO1Bt/SKLb/UitStgljm48RNZs0pI0nOm0o3p7EkT8MNUjyW3d7SFoq588hrc36z9dlMdsf2WXS5oPdcEZhye0HGNXiGV1Hlre2CHu5lv90YIJZPFpEiPl9vadHJc5a78lv8pO8zWIW4pqJxIIF7vyFfZCQksRCD1rSmS33g5BrpMdUbyrW1sfiwuptXEc1N5dIhuK/Q,iv:VeRcFy9Ng9wIGqbX0JrVX1/b8/4JOtmoCbtJLSWJY98=,tag:Fk27sxh5HnL+/bc7VodWrg==,type:str]
postgres.yaml: ENC[AES256_GCM,data:B6qH5JSh6DqAogR7uTbLONdGBlN/yeY6/k3U3opGXY9RhVdR7KyfCCl5VjjZAAeVoUZpIIkuAszWpDJB8EppkMqgZC2i2IKNrEJj4wW8L058CEIgXvcAlrYoLtFI05pzPi64s66f41UBNg==,iv:Mrk8Mc8ncBd086n94EqxkUKtEIUS/au760vOeoHcvb4=,tag:XfKFV+9k/uYr1c1xNn6ULg==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
lastmodified: '2021-03-31T02:59:54Z'
mac: ENC[AES256_GCM,data:PjJRIAkBVnCzmXd6fjrD5kJ/qYcnvuxPpFoQBlP9WuFzNlClxW0pfHRc0F7j2ELD21xpl1MacgSRSyLWzxQQ4NHkvYJccbuo/bS00oaBL4Y+aTOf0Ian0PViq2VQmSED8m6/GdEDkDWzd2XXSswsw6BHJvoF1CxMjcLgrGRtwEE=,iv:Z0+Cqf33z+tpvB76G2yumAdqADwRWONub2yEzdVejGA=,tag:5h795tNhWbrhbcaoQ9hn0Q==,type:str]
age: []
lastmodified: "2024-12-28T14:16:05Z"
mac: ENC[AES256_GCM,data:+hCaTGlDEFzSGkYyiQSooVYtsohWfrEYCmAIhTu4JEEDEb/UTb3JHu56mjEgOKhPheptsDGULzf9cd0VuVpJ/BgKDGLo380FMtNGA7n1u0/w3u1SGWRmNN5OoiVExCo3Y5rpdUOxWMpxDcAq/lvZVNwRznKOK4FHHwXWBztJ3PM=,iv:POxsikyMBcw8sQg2+2yj6T0q2ARP+NmLajVdru+fnjE=,tag:xoTVTu4fzSBz7Ff6AKpgcA==,type:str]
pgp:
- created_at: '2021-02-06T22:26:03Z'
enc: |
- created_at: "2021-02-06T22:26:03Z"
enc: |
-----BEGIN PGP MESSAGE-----
hQIMA2CuQNd5ml+/AQ/9GHzYbKml+FrvNKkmUiAzL874+hqzASaUtxzVvQBjhHCx
Expand All @@ -33,6 +34,6 @@ sops:
mIM6NpEKL5aW3jSdkqjKXlIr0ljnBb5wo+XUCl0QK5LX2VPBeHInYFaEszSP
=Ts27
-----END PGP MESSAGE-----
fp: E61087FD0DC8B3AA734061498564C79FC27F08E2
fp: E61087FD0DC8B3AA734061498564C79FC27F08E2
encrypted_regex: ((?i)(pass|secret($|[^N])|key|token|^data$|^stringData))
version: 3.6.1
version: 3.9.0
2 changes: 1 addition & 1 deletion settings/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data:
CLUSTER_LB_GOW: "129"
CLUSTER_LB_HA: "130"
CLUSTER_LB_CCU: "131"
CLUSTER_LB_GITEA: "132"
CLUSTER_LB_FORGEJO: "132"
CLUSTER_LB_PLEX: "133"
#CLUSTER_LB_OPENVPN: "134"
CLUSTER_LB_LORAFWD: "135"
Expand Down

0 comments on commit c40d1f8

Please sign in to comment.