From 3aab8dad008c8f9299296e9f63fc00ef533214d5 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 8 Sep 2021 15:47:34 +0530 Subject: [PATCH] ci: start minikube with psp addon we need to start minikube with the PodSecurityPolicy admission controller and the pod-security-policy addon enabled for psp. Ref:- https://minikube.sigs.k8s.io/docs/ tutorials/using_psp/#tutorial Signed-off-by: Madhu Rajanna --- scripts/minikube.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/minikube.sh b/scripts/minikube.sh index faf9c8643..e4db3bf58 100755 --- a/scripts/minikube.sh +++ b/scripts/minikube.sh @@ -163,7 +163,7 @@ CSI_NODE_DRIVER_REGISTRAR_VERSION=${CSI_NODE_DRIVER_REGISTRAR_VERSION:-"v2.2.0"} K8S_FEATURE_GATES=${K8S_FEATURE_GATES:-"ExpandCSIVolumes=true"} #extra-config for kube https://minikube.sigs.k8s.io/docs/reference/configuration/kubernetes/ -EXTRA_CONFIG_PSP="--extra-config=apiserver.enable-admission-plugins=PodSecurityPolicy" +EXTRA_CONFIG_PSP="--extra-config=apiserver.enable-admission-plugins=PodSecurityPolicy --addons=pod-security-policy" # kubelet.resolv-conf needs to point to a file, not a symlink # the default minikube VM has /etc/resolv.conf -> /run/systemd/resolve/resolv.conf