Skip to content

Commit 0228e94

Browse files
committed
Refactor ingress configuration in monitoring.yml for cleaner structure and improved readability
1 parent a8dbc0b commit 0228e94

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

Terraform/3-main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ resource "aws_eks_addon" "metrics_server" {
2424
addon_name = "metrics-server"
2525
addon_version = null
2626
resolve_conflicts = "OVERWRITE"
27-
}
28-
27+
}

argocd/monitoring.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ spec:
2424
annotations:
2525
nginx.ingress.kubernetes.io/rewrite-target: /
2626
hosts:
27-
- host: monitoring.yourdomain.com
28-
paths:
29-
- path: /prometheus
30-
pathType: Prefix
27+
- monitoring.yourdomain.com
28+
paths:
29+
- /prometheus
3130
3231
grafana:
3332
service:
@@ -41,10 +40,8 @@ spec:
4140
annotations:
4241
nginx.ingress.kubernetes.io/rewrite-target: /
4342
hosts:
44-
- host: monitoring.yourdomain.com
45-
paths:
46-
- path: /grafana
47-
pathType: Prefix
43+
- monitoring.yourdomain.com
44+
path: /grafana
4845
4946
alertmanager:
5047
service:
@@ -55,10 +52,9 @@ spec:
5552
annotations:
5653
nginx.ingress.kubernetes.io/rewrite-target: /
5754
hosts:
58-
- host: monitoring.yourdomain.com
59-
paths:
60-
- path: /alertmanager
61-
pathType: Prefix
55+
- monitoring.yourdomain.com
56+
paths:
57+
- /alertmanager
6258
6359
destination:
6460
server: https://kubernetes.default.svc

0 commit comments

Comments
 (0)