diff --git a/pkg/localkube/apiserver.go b/pkg/localkube/apiserver.go index 127b742658..0d536b36f2 100644 --- a/pkg/localkube/apiserver.go +++ b/pkg/localkube/apiserver.go @@ -55,6 +55,8 @@ func StartAPIServer(lk LocalkubeServer) func() error { config.EnableWatchCache = true config.MinRequestTimeout = 1800 + config.AllowPrivileged = true + return func() error { return apiserver.Run(config) } diff --git a/pkg/localkube/kubelet.go b/pkg/localkube/kubelet.go index 26f0af5c09..e2ce6f2a62 100644 --- a/pkg/localkube/kubelet.go +++ b/pkg/localkube/kubelet.go @@ -38,6 +38,8 @@ func StartKubeletServer(lk LocalkubeServer) func() error { // Set containerized based on the flag config.Containerized = lk.Containerized + config.AllowPrivileged = true + // Networking config.ClusterDomain = lk.DNSDomain config.ClusterDNS = lk.DNSIP.String()