diff --git a/argocd/application.yaml b/argocd/application.yaml new file mode 100644 index 0000000..c5e4983 --- /dev/null +++ b/argocd/application.yaml @@ -0,0 +1,13 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cluster + namespace: argocd +spec: + project: default + source: + repoURL: https://gitea.tap-tap.win/TapTap/Cluster.git + targetRevision: HEAD + path: . + destination: + server: https://kubernetes.default.svc diff --git a/argocd/kustomization.yaml b/argocd/kustomization.yaml new file mode 100644 index 0000000..965951b --- /dev/null +++ b/argocd/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - namespace.yaml + +helmCharts: + - name: argo-cd + repo: https://argoproj.github.io/argo-helm + releaseName: argocd + version: 10.10.1 + namespace: argocd + valuesFile: values.yaml diff --git a/argocd/namespace.yaml b/argocd/namespace.yaml new file mode 100644 index 0000000..a040f2b --- /dev/null +++ b/argocd/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: argocd diff --git a/argocd/values.yaml b/argocd/values.yaml new file mode 100644 index 0000000..6fa9722 --- /dev/null +++ b/argocd/values.yaml @@ -0,0 +1,14 @@ +configs: + params: + server.insecure: true + +server: + ingress: + enabled: true + ingressClassName: traefik + hostname: argocd.tap-tap.win + tls: true + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-issuer" + traefik.ingress.kubernetes.io/router.entrypoints: websecure +