Skip to content

Commit b40ee27

Browse files
committed
Change service type to LoadBalancer for Prometheus, Grafana, and Alertmanager in monitoring configuration
1 parent e7b0a54 commit b40ee27

File tree

1 file changed

+4
-37
lines changed

1 file changed

+4
-37
lines changed

argocd/monitoring.yml

Lines changed: 4 additions & 37 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: ClusterIP
19+
type: LoadBalancer
2020
grafana:
2121
service:
22-
type: ClusterIP
22+
type: LoadBalancer
2323
admin:
2424
existingSecret: grafana-admin-secret
2525
passwordKey: admin-password
2626
alertmanager:
2727
service:
28-
type: ClusterIP
28+
type: LoadBalancer
2929
destination:
3030
server: https://kubernetes.default.svc
3131
namespace: ${MONITORING_NAMESPACE}
@@ -36,37 +36,4 @@ spec:
3636
syncOptions:
3737
- CreateNamespace=true
3838
- ServerSideApply=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
39+
- SkipDryRunOnMissingResource=true

0 commit comments

Comments
 (0)