You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$uname -a
Linux centos111 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ vcluster --version
vcluster version 0.4.5
$ kubectl cluster-info dump | grep -m 1 service-cluster-ip-range
"--service-cluster-ip-range=10.96.0.0/12",
$kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.13", GitCommit:"2444b3347a2c45eb965b182fb836e1f51dc61b70", GitTreeState:"clean", BuildDate:"2021-11-17T13:05:33Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.13", GitCommit:"2444b3347a2c45eb965b182fb836e1f51dc61b70", GitTreeState:"clean", BuildDate:"2021-11-17T13:00:29Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
$docker version
Client: Docker Engine - Community
Version: 20.10.11
API version: 1.41
Go version: go1.16.9
Git commit: dea9396
Built: Thu Nov 18 00:38:53 2021
OS/Arch: linux/amd64
Context: default
Experimental: #true
Server: Docker Engine - Community
Engine:
Version: 20.10.11
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: 847da18
Built: Thu Nov 18 00:37:17 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
In my k8s cluster, there are three nodes(one master and two workload nodes), I installed calico,istio, cert-manager, kubernetes-dashboard,metrics-server,ingress-nginx, and metallb in my k8s cluster.
$ kubectl -n host-namespace-1 logs vcluster-1-0
error: a container name must be specified for pod vcluster-1-0, choose one of: [vcluster syncer]
pengtaodeMacBook-MiPro-2:.kube pengtao$ kubectl -n host-namespace-1 logs vcluster-1-0 -c syncer
I1221 07:37:18.573565 1 main.go:238] Using physical cluster at https://10.96.0.1:443
I1221 07:37:18.623091 1 main.go:269] Can connect to virtual cluster with version v1.22.2+k3s2
F1221 07:37:18.628630 1 main.go:147] register controllers: register ingresses indices: no matches for kind "Ingress" in version "networking.k8s.io/v1"
So I delete the pod, let it restart by StatefulSet controller, but it didn't work, the syncer container report the same errors, and after I delete the pod three or four times , the syncer container report:
@pengtaoman thanks for reporting this issue! This looks like a problem in k3s where the sqlite database is locked, I would recommend you look into other ways of storing the vcluster data, such as mysql, postgresql or etcd. You can also try to deploy k0s or k8s instead of k3s which might work for you.
I upgraded Vcluster command to v0.5.0-beta.0, and used vcluster create my-vcluster -n my-vcluster --distro k8s --kubernetes-version v1.20.13, it worked, thank you.
My environments are as follows:
In my k8s cluster, there are three nodes(one master and two workload nodes), I installed calico,istio, cert-manager, kubernetes-dashboard,metrics-server,ingress-nginx, and metallb in my k8s cluster.
The api-resources are as follow:
In order to apply one PV used by the PVC when creating Vcluster, I create a PV:
Then I deploy a VCluster
First time , the syncer container report errors
So I delete the pod, let it restart by StatefulSet controller, but it didn't work, the syncer container report the same errors, and after I delete the pod three or four times , the syncer container report:
The vcluster container report:
Would you please help me to resolve this problem, thanks a lot!
The text was updated successfully, but these errors were encountered: