diff --git a/argo/ingress.yaml b/argo/ingress.yaml index c9234a6..22f4cfb 100644 --- a/argo/ingress.yaml +++ b/argo/ingress.yaml @@ -1,26 +1,18 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute +apiVersion: networking.k8s.io/v1 +kind: Ingress metadata: name: argocd-server namespace: argocd - annotations: - kubernetes.io/ingress.class: "traefik-inter" spec: - entryPoints: - - websecure - routes: - - kind: Rule - match: Host(`argo.beta.entos`) - priority: 10 - services: - - name: argocd-server - port: 80 - - kind: Rule - match: Host(`argo.beta.entos`) && Headers(`Content-Type`, `application/grpc`) - priority: 11 - services: - - name: argocd-server - port: 80 - scheme: h2c - tls: - certResolver: default + ingressClassName: nginx-internal + rules: + - host: argo.entos + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80 diff --git a/argo/servicemonitor.yaml b/argo/servicemonitor.yaml new file mode 100644 index 0000000..21c58a2 --- /dev/null +++ b/argo/servicemonitor.yaml @@ -0,0 +1,14 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: argocd + namespace: argocd + labels: + team: core +spec: + selector: + matchLabels: + app.kubernetes.io/name: argocd-metrics + endpoints: + - port: metrics + path: /metrics