This commit is contained in:
Andrei Kartashov 2023-10-01 14:05:02 +07:00
parent f7ad230c33
commit 41a4bd629c
3 changed files with 85 additions and 0 deletions

View file

@ -204,6 +204,12 @@ ArgoCD bootstrap
argocd app set argocd/grafana --parameter githubClientSecret=REPLACE
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``.
Passing Sensitive Parameters in ArgoCD apps

View 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

View 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