k3s/pkg
Akihiro Suda 728ebcc027 rootless: remove rootful /run/{netns,containerd} symlinks
Since a recent commit, rootless mode was failing with the following errors:

```
E0122 22:59:47.615567      21 kuberuntime_manager.go:755] createPodSandbox for pod "helm-install-traefik-wf8lc_kube-system(9de0a1b2-e2a2-4ea5-8fb6-22c9272a182f)" failed: rpc error: code = Unknown desc = failed to create network namespace for sandbox "285ab835609387f82d304bac1fefa5fb2a6c49a542a9921995d0c35d33c683d5": failed to setup netns: open /var/run/netns/cni-c628a228-651e-e03e-d27d-bb5e87281846: permission denied
...
E0122 23:31:34.027814      21 pod_workers.go:191] Error syncing pod 1a77d21f-ff3d-4475-9749-224229ddc31a ("coredns-854c77959c-w4d7g_kube-system(1a77d21f-ff3d-4475-9749-224229ddc31a)"), skipping: failed to "CreatePodSandbox" for "coredns-854c77959c-w4d7g_kube-system(1a77d21f-ff3d-4475-9749-224229ddc31a)" with CreatePodSandboxError: "CreatePodSandbox for pod \"coredns-854c77959c-w4d7g_kube-system(1a77d21f-ff3d-4475-9749-224229ddc31a)\" failed: rpc error: code = Unknown desc = failed to create containerd task: io.containerd.runc.v2: create new shim socket: listen unix /run/containerd/s/8f0e40e11a69738407f1ebaf31ced3f08c29bb62022058813314fb004f93c422: bind: permission denied\n: exit status 1: unknown"
```

Remove symlinks to /run/{netns,containerd} so that rootless mode can create their own /run/{netns,containerd}.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-01-22 19:51:43 -08:00
..
agent Only container-runtime-endpoint wants RuntimeSocket path as URI 2021-01-22 18:56:30 -08:00
apis/k3s.cattle.io Update generated code 2019-10-30 19:08:26 -07:00
authenticator Use secrets for node-passwd entries and cleanup 2020-11-05 09:48:53 -07:00
bootstrap Refactor tokens, bootstrap, and cli args 2019-10-30 19:06:49 -07:00
cli Add functionality to bind custom IP address for Etcd metrics endpoint (#2750) 2021-01-22 17:40:48 -08:00
clientaccess Add timeout to clientaccess http client 2020-09-27 03:26:27 -07:00
cloudprovider Replace k3s cloud provider wrangler controller with core node informer (#2843) 2021-01-22 16:59:48 -08:00
cluster Add ability to perform an etcd on-demand snapshot via cli (#2819) 2021-01-21 14:09:15 -07:00
codegen Add support for disabling all staged content 2020-09-14 14:21:37 -07:00
configfilearg Add support for both config-file and data-dir at a global level in the self-extracting wrapper for K3s (#2594) 2020-12-16 09:27:57 -08:00
containerd add fuse-overlayfs snapshotter (mainly for rootless mode) 2020-12-01 11:00:00 -08:00
ctr Build & enable ctr with k3s server 2019-06-30 09:30:25 -07:00
daemons Only container-runtime-endpoint wants RuntimeSocket path as URI 2021-01-22 18:56:30 -08:00
datadir Make program name a variable to be changed at compile time 2020-06-06 16:39:41 -07:00
dataverify Add file verification for data directory 2020-10-06 10:29:27 -07:00
deploy Bump coredns to 1.8.0 2020-12-17 15:20:19 -08:00
etcd Fix typo in field tag 2021-01-22 19:38:37 -08:00
flock Add Release function for flock 2020-10-06 10:29:27 -07:00
generated Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
kubectl Update Kubernetes to v1.20.0-k3s1 2020-12-08 22:51:34 -08:00
netutil Initial Logging Output Update (#2246) 2020-09-21 09:56:03 -07:00
node Use secrets for node-passwd entries and cleanup 2020-11-05 09:48:53 -07:00
nodeconfig Call setproctitle to conceal node args in ps output 2020-07-28 15:49:49 -07:00
nodepassword Use secrets for node-passwd entries and cleanup 2020-11-05 09:48:53 -07:00
passwd Use secrets for node-passwd entries and cleanup 2020-11-05 09:48:53 -07:00
rootless rootless: remove rootful /run/{netns,containerd} symlinks 2021-01-22 19:51:43 -08:00
rootlessports Initial Logging Output Update (#2246) 2020-09-21 09:56:03 -07:00
server Add ability to perform an etcd on-demand snapshot via cli (#2819) 2021-01-21 14:09:15 -07:00
servicelb deprecate the "node-role.kubernetes.io/master" label / taint 2020-12-08 22:51:34 -08:00
static Add support for disabling all staged content 2020-09-14 14:21:37 -07:00
token Refactor tokens, bootstrap, and cli args 2019-10-30 19:06:49 -07:00
untar Continued refactoring 2019-01-11 21:52:30 -07:00
util fix formatting 2020-02-23 00:48:26 -08:00
version remove hard coded value 2020-07-09 11:20:06 -07:00