67
67
return 200 'alive';
68
68
}
69
69
70
+ {{- if .Values.distributor.enabled }}
71
+
70
72
# Distributor Config
71
73
location = /ring {
72
74
proxy_pass http://{{ template "cortex.fullname" . }}-distributor.{{ $rootDomain }}$request_uri;
85
87
proxy_pass http://{{ template "cortex.fullname" . }}-distributor.{{ $rootDomain }}$request_uri;
86
88
}
87
89
90
+ {{- end }}
91
+
92
+ {{- if .Values.alertmanager.enabled }}
93
+
88
94
# Alertmanager Config
89
95
location ~ /api/prom/alertmanager/.* {
90
96
proxy_pass http://{{ template "cortex.fullname" . }}-alertmanager.{{ $rootDomain }}$request_uri;
@@ -102,6 +108,10 @@ data:
102
108
proxy_pass http://{{ template "cortex.fullname" . }}-alertmanager.{{ $rootDomain }}/api/v1/alerts;
103
109
}
104
110
111
+ {{- end }}
112
+
113
+ {{- if .Values.ruler.enabled }}
114
+
105
115
# Ruler Config
106
116
location ~ /api/v1/rules {
107
117
proxy_pass http://{{ template "cortex.fullname" . }}-ruler.{{ $rootDomain }}$request_uri;
@@ -115,11 +125,19 @@ data:
115
125
proxy_pass http://{{ template "cortex.fullname" . }}-ruler.{{ $rootDomain }}$request_uri;
116
126
}
117
127
128
+ {{- end }}
129
+
130
+ {{- if .Values.configs.enabled }}
131
+
118
132
# Config Config
119
133
location ~ /api/prom/configs/.* {
120
134
proxy_pass http://{{ template "cortex.fullname" . }}-configs.{{ $rootDomain }}$request_uri;
121
135
}
122
136
137
+ {{- end }}
138
+
139
+ {{- if .Values.query_frontend.enabled }}
140
+
123
141
# Query Config
124
142
location ~ /api/prom/.* {
125
143
proxy_pass http://{{ template "cortex.fullname" . }}-query-frontend.{{ $rootDomain }}$request_uri;
@@ -133,6 +151,9 @@ data:
133
151
location ~ {{.Values.config.api.prometheus_http_prefix}}/api/v1/label/.* {
134
152
proxy_pass http://{{ template "cortex.fullname" . }}-query-frontend.{{ $rootDomain }}$request_uri;
135
153
}
154
+
155
+ {{- end }}
156
+
136
157
{{- if and (.Values.config.auth_enabled) (.Values.nginx.config.auth_orgs) }}
137
158
# Auth orgs
138
159
{{- range $org := compact .Values.nginx.config.auth_orgs | uniq }}
0 commit comments