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

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