Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fix: nVidia plugin missing network policy
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota committed Nov 7, 2023
1 parent 627e6b7 commit cf946dd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions apps/nvidia-device-plugin/templates/network-policy-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ $.Release.Namespace }}-plugin
namespace: {{ $.Release.Namespace }}
labels:
{{- include "common.resource-labels" . | indent 4 }}
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: {{ $.Release.Name }}
ingress:
# Accept traffic from all pods within the namespace
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: {{ $.Release.Namespace }}
podSelector: {}
egress:
{{- include "common.egress-kubeapi" . | nindent 4 }}
policyTypes:
- Ingress
- Egress

0 comments on commit cf946dd

Please sign in to comment.