Tanguy Herbron
1830d126a5
Add ServiceMonitor resource to scrape /metrics endpoint. Said endpoint cannot be scrapped from outside of the cluster, as a special IngressRoute Middleware prevents the exposition of said endpoint.
16 lines
269 B
YAML
16 lines
269 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: gitea-svc
|
|
namespace: gitea
|
|
labels:
|
|
app.kubernetes.io/name: gitea
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
protocol: TCP
|
|
targetPort: 3000
|
|
selector:
|
|
app: gitea
|