From 1788ab76a2d72dd2cf79835a926adc94a9974c3e Mon Sep 17 00:00:00 2001 From: Medya Ghazizadeh Date: Wed, 21 Aug 2024 11:35:44 -0700 Subject: [PATCH] Fix kindnet permission to support network policies (#19360) * add -d shorthand for --driver * add -d shorthand for --driver * give more permission to kindnet clusterrole --- pkg/minikube/cni/kindnet.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/minikube/cni/kindnet.go b/pkg/minikube/cni/kindnet.go index 1046864d84c3..21dc42973663 100644 --- a/pkg/minikube/cni/kindnet.go +++ b/pkg/minikube/cni/kindnet.go @@ -45,6 +45,8 @@ rules: - "" resources: - nodes + - namespaces + - pods verbs: - list - watch @@ -55,6 +57,14 @@ rules: - configmaps verbs: - get + - apiGroups: + - networking.k8s.io + resources: + - networkpolicies + verbs: + - get + - list + - watch --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1