diff --git a/apps/argocd.yaml b/apps/argocd.yaml new file mode 100644 index 0000000..9f461e4 --- /dev/null +++ b/apps/argocd.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argocd-config + namespace: argocd +spec: + project: default + source: + repoURL: http://forgejo.forgejo.svc.cluster.local:3000/jad0s/gitops.git + targetRevision: HEAD + path: manifests/argocd + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/manifests/argocd/argocd-cmd-params.yaml b/manifests/argocd/argocd-cmd-params.yaml new file mode 100644 index 0000000..235e5af --- /dev/null +++ b/manifests/argocd/argocd-cmd-params.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: argocd-cmd-params-cm + namespace: argocd +data: + server.insecure: "true" diff --git a/manifests/argocd/ingress.yaml b/manifests/argocd/ingress.yaml new file mode 100644 index 0000000..00d1107 --- /dev/null +++ b/manifests/argocd/ingress.yaml @@ -0,0 +1,25 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argocd + namespace: argocd + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + traefik.ingress.kubernetes.io/router.entrypoints: websecure +spec: + ingressClassName: traefik + rules: + - host: argocd.libretalk.eu + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80 + tls: + - hosts: + - argocd.libretalk.eu + secretName: argocd-tls