Skip to content

Commit c32e32c

Browse files
committed
Change service type to ClusterIP for Prometheus, Grafana, and Alertmanager; add Ingress configuration for monitoring services
1 parent a7d5016 commit c32e32c

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

argocd/monitoring.yml

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ spec:
1616
enabled: true # Enable CRD installation
1717
prometheus:
1818
service:
19-
type: LoadBalancer
19+
type: ClusterIP
2020
grafana:
2121
service:
22-
type: LoadBalancer
22+
type: ClusterIP
2323
admin:
2424
existingSecret: grafana-admin-secret
2525
passwordKey: admin-password
2626
alertmanager:
2727
service:
28-
type: LoadBalancer
28+
type: ClusterIP
2929
destination:
3030
server: https://kubernetes.default.svc
3131
namespace: ${MONITORING_NAMESPACE}
@@ -36,4 +36,37 @@ spec:
3636
syncOptions:
3737
- CreateNamespace=true
3838
- ServerSideApply=true
39-
- SkipDryRunOnMissingResource=true
39+
- SkipDryRunOnMissingResource=true
40+
41+
---
42+
apiVersion: networking.k8s.io/v1
43+
kind: Ingress
44+
metadata:
45+
name: monitoring-ingress
46+
namespace: ${MONITORING_NAMESPACE}
47+
spec:
48+
rules:
49+
- host: monitoring.yourdomain.com
50+
http:
51+
paths:
52+
- path: /grafana
53+
pathType: Prefix
54+
backend:
55+
service:
56+
name: kube-prometheus-stack-grafana
57+
port:
58+
number: 80
59+
- path: /prometheus
60+
pathType: Prefix
61+
backend:
62+
service:
63+
name: kube-prometheus-stack-prometheus
64+
port:
65+
number: 9090
66+
- path: /alertmanager
67+
pathType: Prefix
68+
backend:
69+
service:
70+
name: kube-prometheus-stack-alertmanager
71+
port:
72+
number: 9093

0 commit comments

Comments
 (0)