argocd applications and registry

This commit is contained in:
Steffen Illium 2024-03-29 12:23:13 +01:00
parent 1e4785c891
commit a1661fe6b7
5 changed files with 50 additions and 1 deletions

View File

@ -0,0 +1,20 @@
API Version: argoproj.io/v1alpha1
Name: website
Namespace: argocd
Annotations:
argocd-image-updater.argoproj.io/image-list: website=illiumst/website
argocd-image-updater.argoproj.io/website.update-strategy: latest
Kind: Application
Spec:
Destination:
Name: in-cluster
Namespace: website
Project: default
Source:
Path: projects/website
Repo URL: https://github.com/illiumst/kubedeploy.git
Target Revision: HEAD
Sync Policy:
Sync Options:
CreateNamespace=true

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Secret
metadata:
name: argo-cd-ghcr-secret
namespace: argocd
annotations:
sealedsecrets.bitnami.com/namespace-wide: true
type: Opaque
stringData:
username: <----->
password: <----->

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/name: argocd-image-updater-config
app.kubernetes.io/part-of: argocd-image-updater
name: argocd-image-updater-config
data:
registries.conf: |
registries:
- name: GHCR.io
prefix: ghcr.io
api_url: hhttps://ghcr.io/v2
credentials: pullsecret:argocd/argo-cd-ghcr-secret

View File

@ -5,12 +5,16 @@ namespace: argocd
# - base/argo-cd-ui-ingress.yaml
resources:
# Applications
- applications/projcts-website.yaml
# Base functionality
- base/argo-cd-k-with-helm.yaml
- base/argo-cd-image-updater-cm.yaml
- patches/argocd-cmd-params-cm.yaml
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- base/argo-cd-namespace.yaml
patches:
- path: patches/argocd-cmd-params-cm-patch.yaml
- path: patches/argocd-server-service.yaml
- path: patches/argocd-cm-patch.yaml
- path: patches/nodeselector.yaml