Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ spec:
matchLabels:
app.kubernetes.io/name: metrics-server
portLevelMtls:
# Allow api service calls to operate permissive since ingress originates from the nodes
"10250":
mode: PERMISSIVE
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ spec:
portLevelMtls:
"18300":
mode: PERMISSIVE
{{- end }}
# Allow webhooks to operate permissive since ingress originates from the nodes
"30443":
mode: PERMISSIVE
{{- end }}
8 changes: 8 additions & 0 deletions src/neuvector/chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ spec:
selector:
app: neuvector-updater-pod

- direction: Ingress
# todo: evaluate a "KubeAPI" _ingress_ generated rule for webhook calls
remoteGenerated: Anywhere
selector:
app: neuvector-controller-pod
port: 30443
description: "Webhook"

- direction: Ingress
remoteNamespace: monitoring
remoteSelector:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if .Capabilities.APIVersions.Has "security.istio.io/v1beta1" }}
apiVersion: "security.istio.io/v1beta1"
kind: PeerAuthentication
metadata:
name: prometheus-operator-webhook
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
app: kube-prometheus-stack-operator
mtls:
mode: STRICT
portLevelMtls:
# Allow webhooks to operate permissive since ingress originates from the nodes
"10250":
mode: PERMISSIVE
{{- end }}
8 changes: 8 additions & 0 deletions src/prometheus-stack/chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ spec:
selector:
app: kube-prometheus-stack-admission-patch

- direction: Ingress
# todo: evaluate a "KubeAPI" _ingress_ generated rule for webhook calls
remoteGenerated: Anywhere
selector:
app: kube-prometheus-stack-operator
port: 10250
description: "Webhook"

# todo: lockdown egress to scrape targets
- direction: Egress
remoteNamespace: ""
Expand Down