Skip to content
Open
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
24 changes: 22 additions & 2 deletions pcm-kubernetes.yaml.experimental
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
failureThreshold: 3
httpGet:
path: /
port: 9738
port: pcm-metrics
scheme: HTTP
periodSeconds: 10
successThreshold: 1
Expand All @@ -65,7 +65,7 @@ spec:
failureThreshold: 3
httpGet:
path: /
port: 9738
port: pcm-metrics
scheme: HTTP
periodSeconds: 10
successThreshold: 1
Expand Down Expand Up @@ -123,6 +123,26 @@ spec:
path: /proc/sys/kernel/nmi_watchdog
name: nmi-watchdog
---
# This networkPolicy lets anyone query the prometheus-metrics
# PCM shouldn't have any outbound network trafic
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: intel-pcm-sensor-server
namespace: intel-pcm
spec:
podSelector:
matchLabels:
app.kubernetes.io/component: pcm-sensor-server
policyTypes:
- Ingress
- Egress
ingress:
- ports:
- protocol: TCP
port: pcm-metrics
egress: []
---
# prometheus operator defines this CRD
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
Expand Down
Loading