Skip to content

Commit

Permalink
Add alertmanager missing CNP (#1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson authored Feb 19, 2024
1 parent a8b8f3a commit 168ca18
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Add missing ciliumnetworkpolicy for alertmanager.

## [4.68.1] - 2024-02-15

### Added
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if .Values.ciliumNetworkPolicy.enabled -}}
{{- if .Capabilities.APIVersions.Has "cilium.io/v2" -}}
apiVersion: "cilium.io/v2"
kind: CiliumNetworkPolicy
metadata:
labels:
{{- include "labels.common" . | nindent 4 }}
name: alertmanager
namespace: {{ include "resource.default.namespace" . }}
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: alertmanager
egress:
- toEntities:
## Needed to access opsgenie.
- world
ingress:
- fromEntities:
- cluster
toPorts:
- ports:
- port: "9093"
protocol: "TCP"
{{ end }}
{{ end }}

0 comments on commit 168ca18

Please sign in to comment.