When an action invokes the kubectlGet() function the API server will execute kubectl on the command line. This may run very slowly because kubectl is unable to cache any results, getting errors on file permissions each time it tries:
I0114 18:26:59.188965 37429 cached_discovery.go:87] failed to write cache to /home/default/.kube/cache/discovery/172.30.0.1_443/apiextensions.k8s.io/v1beta1/serverresources.json due to mkdir /home/default: permission denied
We need to grant write access to the HOME dir so that kubectl can build its cache and perform better.
When an action invokes the kubectlGet() function the API server will execute kubectl on the command line. This may run very slowly because kubectl is unable to cache any results, getting errors on file permissions each time it tries:
I0114 18:26:59.188965 37429 cached_discovery.go:87] failed to write cache to /home/default/.kube/cache/discovery/172.30.0.1_443/apiextensions.k8s.io/v1beta1/serverresources.json due to mkdir /home/default: permission denied
We need to grant write access to the HOME dir so that kubectl can build its cache and perform better.