diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f229bb4e69d2235ade76cd0dd0325686a21154e..62e633d1ded4c96066b448a738484d6ba29f6cd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), --- +## [0.1.15-bb.1] - 2021-07-02 +### Added +- Network policy to allow prometheus scraping of istio envoy sidecar. + ## [0.1.15-bb.0] - 2021-06-22 ### Changed - Upgrade to version 7.12.0 of Kibana and Elasticsearch diff --git a/chart/Chart.yaml b/chart/Chart.yaml index f8778f6ed4c3069ffec148d09909304c59787420..51b0dec9e5fe466acb7391b2b90a0dda4028ae64 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: logging -version: 0.1.15-bb.0 +version: 0.1.15-bb.1 appVersion: 7.12.0 dependencies: - name: bb-test-lib diff --git a/chart/templates/bigbang/networkpolicies/allow-sidecar-scraping.yaml b/chart/templates/bigbang/networkpolicies/allow-sidecar-scraping.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0d45971d78b907c720fedb50e25ff8c77df36db5 --- /dev/null +++ b/chart/templates/bigbang/networkpolicies/allow-sidecar-scraping.yaml @@ -0,0 +1,24 @@ +{{- if and .Values.networkPolicies.enabled .Values.istio.enabled }} +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: allow-sidecar-scraping + namespace: {{ .Release.Namespace }} +spec: + podSelector: {} + policyTypes: + - Ingress + ingress: + - from: + - namespaceSelector: + matchLabels: + app.kubernetes.io/name: monitoring + podSelector: + matchLabels: + app: prometheus + ports: + - protocol: TCP + port: 15090 + - protocol: TCP + port: 15020 +{{- end }}