diff --git a/clusters/my-cluster/argocd/ingress.yaml b/clusters/my-cluster/argocd/ingress.yaml new file mode 100644 index 0000000..00b5e05 --- /dev/null +++ b/clusters/my-cluster/argocd/ingress.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: argocd-server + namespace: argocd +spec: + entryPoints: + - websecure + routes: + - kind: Rule + match: Host(`argocd.example.com`) + priority: 10 + services: + - name: argocd-server + port: 80 + - kind: Rule + match: Host(`argocd.example.com`) && Headers(`Content-Type`, `application/grpc`) + priority: 11 + services: + - name: argocd-server + port: 80 + scheme: h2c + tls: + certResolver: default diff --git a/clusters/my-cluster/argocd/kustomization.yaml b/clusters/my-cluster/argocd/kustomization.yaml new file mode 100644 index 0000000..0bc1d11 --- /dev/null +++ b/clusters/my-cluster/argocd/kustomization.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: argocd +resources: + - namespace.yaml + - https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml + - ingress.yaml diff --git a/clusters/my-cluster/argocd/namespace.yaml b/clusters/my-cluster/argocd/namespace.yaml new file mode 100644 index 0000000..42add95 --- /dev/null +++ b/clusters/my-cluster/argocd/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: argocd