generated from giantswarm/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da81b1c
commit 5b9e6fb
Showing
3 changed files
with
40 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
helm/prometheus-meta-operator/templates/cilium-network-policy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{- if .Values.ciliumNetworkPolicy.enabled -}} | ||
{{- if .Capabilities.APIVersions.Has "cilium.io/v2" -}} | ||
apiVersion: "cilium.io/v2" | ||
kind: CiliumNetworkPolicy | ||
metadata: | ||
name: {{ include "resource.default.name" . }} | ||
namespace: {{ include "resource.default.namespace" . }} | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
spec: | ||
endpointSelector: | ||
matchLabels: | ||
{{- include "labels.selector" . | nindent 6 }} | ||
egress: | ||
- toEntities: | ||
## Needed to create anything in the MCs. | ||
- kube-apiserver | ||
## Needed to set remote write informations. | ||
- cluster | ||
## Needed to access opsgenie and create heartbeats. | ||
- world | ||
ingress: | ||
- fromEntities: | ||
- cluster | ||
toPorts: | ||
- ports: | ||
- port: "8000" | ||
protocol: "TCP" | ||
rules: | ||
http: | ||
- method: "GET" | ||
path: "/metrics" | ||
- method: "GET" | ||
path: "/healthz" | ||
{{ end }} | ||
{{ end }} |
34 changes: 0 additions & 34 deletions
34
helm/prometheus-meta-operator/templates/prometheus/prometheus-cilium-network-policy.yaml
This file was deleted.
Oops, something went wrong.