mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
forgejo
This commit is contained in:
parent
f7ad230c33
commit
41a4bd629c
3 changed files with 85 additions and 0 deletions
|
|
@ -204,6 +204,12 @@ ArgoCD bootstrap
|
||||||
argocd app set argocd/grafana --parameter githubClientSecret=REPLACE
|
argocd app set argocd/grafana --parameter githubClientSecret=REPLACE
|
||||||
argocd app set argocd/grafana --parameter adminPassword=`pwgen -1 12`
|
argocd app set argocd/grafana --parameter adminPassword=`pwgen -1 12`
|
||||||
|
|
||||||
|
* Reset forgejo password
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
argocd app set argocd/forgejo --parameter adminPassword=`pwgen -1 12`
|
||||||
|
|
||||||
|
|
||||||
* Remove secret ``kubectl --context gullfaxi -n argocd delete secret argocd-initial-admin-secret``.
|
* Remove secret ``kubectl --context gullfaxi -n argocd delete secret argocd-initial-admin-secret``.
|
||||||
|
|
||||||
Passing Sensitive Parameters in ArgoCD apps
|
Passing Sensitive Parameters in ArgoCD apps
|
||||||
|
|
|
||||||
69
state/gullfaxi/apps/forgejo/application.yaml
Normal file
69
state/gullfaxi/apps/forgejo/application.yaml
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
---
|
||||||
|
# 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: bitnami
|
||||||
|
type: helm
|
||||||
|
enableOci: "true"
|
||||||
|
url: codeberg.org/forgejo-contrib
|
||||||
|
---
|
||||||
|
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
|
||||||
|
sources:
|
||||||
|
- repoURL: codeberg.org/forgejo-contrib
|
||||||
|
chart: forgejo
|
||||||
|
targetRevision: 0.12.1
|
||||||
|
helm:
|
||||||
|
valuesObject:
|
||||||
|
memcached:
|
||||||
|
enabled: false
|
||||||
|
postgresql:
|
||||||
|
enabled: false
|
||||||
|
test:
|
||||||
|
enabled: false
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
className: nginx
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/tls-acme: "true"
|
||||||
|
hosts:
|
||||||
|
- host: git.ioot.xyz
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls:
|
||||||
|
- secretName: forgejo-tls
|
||||||
|
hosts:
|
||||||
|
- git.ioot.xyz
|
||||||
|
gitea:
|
||||||
|
admin:
|
||||||
|
username: admin
|
||||||
|
password: reset_in_argocd
|
||||||
|
email: "a@ioot.xyz"
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
- repoURL: git@github.com:amkartashov/gf-k8s.git
|
||||||
|
targetRevision: main
|
||||||
|
path: state/gullfaxi/apps/forgejo/manifests
|
||||||
10
state/gullfaxi/apps/forgejo/manifests/postgresql.yaml
Normal file
10
state/gullfaxi/apps/forgejo/manifests/postgresql.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Example of PostgreSQL cluster
|
||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: postgresql
|
||||||
|
spec:
|
||||||
|
instances: 1
|
||||||
|
primaryUpdateStrategy: unsupervised
|
||||||
|
storage:
|
||||||
|
size: 10Gi
|
||||||
Loading…
Reference in a new issue