mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
90 lines
2.1 KiB
YAML
90 lines
2.1 KiB
YAML
---
|
|
# have to add repo because oci:// prefix is not supported in repoURL
|
|
# https://github.com/argoproj/argo-cd/issues/10823
|
|
apiVersion: v1
|
|
kind: Secret
|
|
type: Opaque
|
|
metadata:
|
|
name: forgejo-oci-repo
|
|
labels:
|
|
argocd.argoproj.io/secret-type: repository
|
|
stringData:
|
|
name: forgejo
|
|
type: helm
|
|
enableOci: "true"
|
|
url: code.forgejo.org/forgejo-helm
|
|
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: forgejo
|
|
spec:
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: forgejo
|
|
project: apps
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
source:
|
|
repoURL: code.forgejo.org/forgejo-helm
|
|
chart: forgejo
|
|
targetRevision: 8.1.2
|
|
helm:
|
|
values: |
|
|
memcached:
|
|
enabled: true
|
|
redis:
|
|
enabled: true
|
|
#global:
|
|
# redis:
|
|
# password: reset_in_argocd
|
|
redis-cluster:
|
|
enabled: false
|
|
postgresql:
|
|
enabled: false
|
|
postgresql-ha:
|
|
enabled: false
|
|
test:
|
|
enabled: false
|
|
persistence:
|
|
annotations:
|
|
argocd.argoproj.io/sync-options: Delete=false
|
|
ingress:
|
|
enabled: true
|
|
className: nginx
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
hosts:
|
|
- host: git.ioot.xyz
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- secretName: forgejo-tls
|
|
hosts:
|
|
- git.ioot.xyz
|
|
gitea:
|
|
admin:
|
|
username: amkartashov
|
|
# password: reset_in_argocd
|
|
email: "a@ioot.xyz"
|
|
oauth:
|
|
- name: GitHub
|
|
provider: github
|
|
config:
|
|
database:
|
|
DB_TYPE: postgres
|
|
HOST: postgresql-rw
|
|
NAME: gitea
|
|
USER: gitea
|
|
# PASSWD: reset_in_argocd
|
|
service:
|
|
DISABLE_REGISTRATION: "true"
|
|
metrics:
|
|
enabled: true
|
|
serviceMonitor:
|
|
enabled: true
|