From ac04cfe160f9aa89d87365863843c22b44cf6411 Mon Sep 17 00:00:00 2001 From: Branden Cobb Date: Thu, 27 May 2021 18:02:16 +0000 Subject: [PATCH] Add pod selector to monitoring net policy --- CHANGELOG.md | 4 ++++ chart/Chart.yaml | 2 +- .../bigbang/networkpolicies/monitoring-ingress.yaml | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec31ad8..3f42276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). --- +## [9.2.6-bb.11] - 2021-05-27 +### Modified +- Modified the bigbang monitoring network policy to be more restrictive. + ## [9.2.6-bb.10] - 2021-05-24 ### Added - Adding network policies. diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 515f121..457eb03 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 8.7.1-community name: sonarqube description: SonarQube is an open sourced code quality scanning tool -version: 9.2.6-bb.10 +version: 9.2.6-bb.11 keywords: - coverage - security diff --git a/chart/templates/bigbang/networkpolicies/monitoring-ingress.yaml b/chart/templates/bigbang/networkpolicies/monitoring-ingress.yaml index 09bb738..69f1c72 100644 --- a/chart/templates/bigbang/networkpolicies/monitoring-ingress.yaml +++ b/chart/templates/bigbang/networkpolicies/monitoring-ingress.yaml @@ -13,7 +13,10 @@ spec: - namespaceSelector: matchLabels: app.kubernetes.io/name: monitoring + podSelector: + matchLabels: + app: prometheus ports: - port: {{ .Values.service.internalPort }} protocol: TCP -{{- end }} \ No newline at end of file +{{- end }} -- GitLab