add argocd

This commit is contained in:
Leon Liu 2024-11-09 22:34:15 +09:00
parent 171cd63168
commit 1bece4049b
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,16 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd
namespace: argocd
spec:
destination:
namespace: argocd
server: {{ .Values.spec.destination.server }}
project: default
source:
path: argocd
repoURL: {{ .Values.spec.source.repoURL }}
targetRevision: {{ .Values.spec.source.targetRevision }}
syncPolicy:
automated: {}

26
argocd/ingress.yaml Normal file
View File

@ -0,0 +1,26 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: argocd-server-ingress
namespace: argocd
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
ingressClassName: nginx
rules:
- host: argocd.k8s.ly-dodo.win
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: argocd-server
port:
name: https
tls:
- hosts:
- argocd.k8s.ly-dodo.win
secretName: argocd-server-tls

View File

@ -0,0 +1,3 @@
resources:
- github.com/argoproj/argo-cd//manifests/cluster-install?ref=stable
- ingress.yaml