-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add monitoring virtualservices for alertmanager / prometheus #977
base: main
Are you sure you want to change the base?
Changes from 2 commits
25be2e5
b68a2b0
8986de8
bb2e477
10fa01b
eb5f67f
7ff5088
38d7b9e
9cacc6d
3c2a1a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,43 @@ metadata: | |
name: prometheus-stack | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
{{- if .Values.sso.enabled }} | ||
sso: | ||
- name: uds-prometheus | ||
clientId: uds-prometheus | ||
redirectUris: | ||
- "https://prom.admin.{{ .Values.domain }}/auth" | ||
enableAuthserviceSelector: | ||
app.kubernetes.io/name: prometheus | ||
groups: | ||
anyOf: | ||
- /UDS Core/Admin | ||
- /UDS Core/Auditor | ||
- name: uds-alertmanager | ||
clientId: uds-alertmanager | ||
redirectUris: | ||
- "https://alerts.admin.{{ .Values.domain }}/auth" | ||
enableAuthserviceSelector: | ||
app.kubernetes.io/name: alertmanager | ||
groups: | ||
anyOf: | ||
- /UDS Core/Admin | ||
- /UDS Core/Auditor | ||
{{- end }} | ||
network: | ||
expose: | ||
- service: alertmanager-operated | ||
selector: | ||
app.kubernetes.io/name: alertmanager | ||
host: alerts | ||
gateway: admin | ||
port: 9093 | ||
- service: prometheus-operated | ||
selector: | ||
app: prometheus | ||
host: prom | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. open to other names here 🤷 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently we have grafana and neuvector, might suggest we keep with that pattern and just use the full product name here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (alternatively we could try and lean more into functionality based naming like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like |
||
gateway: admin | ||
port: 9090 | ||
allow: | ||
# Permit intra-namespace communication | ||
- direction: Ingress | ||
|
@@ -65,3 +101,18 @@ spec: | |
port: 9090 | ||
description: "Grafana Metrics Queries" | ||
|
||
# Custom rules for unanticipated scenarios | ||
{{- range .Values.custom }} | ||
- direction: {{ .direction }} | ||
selector: | ||
{{ .selector | toYaml | nindent 10 }} | ||
{{- if not .remoteGenerated }} | ||
remoteNamespace: {{ .remoteNamespace }} | ||
remoteSelector: | ||
{{ .remoteSelector | toYaml | nindent 10 }} | ||
port: {{ .port }} | ||
{{- else }} | ||
remoteGenerated: {{ .remoteGenerated }} | ||
{{- end }} | ||
description: {{ .description }} | ||
{{- end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# Copyright 2024 Defense Unicorns | ||
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial | ||
|
||
domain: "###ZARF_VAR_DOMAIN###" | ||
|
||
sso: | ||
enabled: true | ||
|
||
custom: [] | ||
# - direction: Egress | ||
# selector: | ||
# app.kubernetes.io/name: alertmanager | ||
# remoteGenerated: Anywhere | ||
# description: "Egress from alertmanager to anywhere" | ||
# port: 443 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this up the list in the standard bundle as it should be deployed after keycloak. and tests were failing as monitoring gets deployed before authservice if left alone.