diff --git a/apps/templates/argocd.yaml b/apps/templates/argocd.yaml new file mode 100644 index 0000000..626c2b8 --- /dev/null +++ b/apps/templates/argocd.yaml @@ -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: {} \ No newline at end of file diff --git a/argocd/ingress.yaml b/argocd/ingress.yaml new file mode 100644 index 0000000..231f5ac --- /dev/null +++ b/argocd/ingress.yaml @@ -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 \ No newline at end of file diff --git a/argocd/kustomization.yaml b/argocd/kustomization.yaml new file mode 100644 index 0000000..a278ec2 --- /dev/null +++ b/argocd/kustomization.yaml @@ -0,0 +1,3 @@ +resources: +- github.com/argoproj/argo-cd//manifests/cluster-install?ref=stable +- ingress.yaml \ No newline at end of file