feat(argo): Update ingress and add servicemonitor

This commit is contained in:
Tanguy Herbron 2024-12-21 22:39:10 +01:00
parent 10079bf091
commit fb8a8364bc
2 changed files with 28 additions and 22 deletions

View File

@ -1,26 +1,18 @@
apiVersion: traefik.containo.us/v1alpha1 apiVersion: networking.k8s.io/v1
kind: IngressRoute kind: Ingress
metadata: metadata:
name: argocd-server name: argocd-server
namespace: argocd namespace: argocd
annotations:
kubernetes.io/ingress.class: "traefik-inter"
spec: spec:
entryPoints: ingressClassName: nginx-internal
- websecure rules:
routes: - host: argo.entos
- kind: Rule http:
match: Host(`argo.beta.entos`) paths:
priority: 10 - path: /
services: pathType: Prefix
- name: argocd-server backend:
port: 80 service:
- kind: Rule name: argocd-server
match: Host(`argo.beta.entos`) && Headers(`Content-Type`, `application/grpc`) port:
priority: 11 number: 80
services:
- name: argocd-server
port: 80
scheme: h2c
tls:
certResolver: default

14
argo/servicemonitor.yaml Normal file
View File

@ -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