Closed christopherhein closed 3 years ago
/assign @Fei-Guo @charleszheng44 @weiling61
thanks @Fei-Guo updated based on your feedback.
LGTM. I will let Chao give a final approve.
@christopherhein Everything works as expected until I created a pod on the tenant cluster. The pod hangs in the pending
state. Looks like the syncer can not connect to the tenant controlplane. I checked the syncer log and saw the following error message
I0617 16:08:03.453969 1 syncer.go:383] cluster default shutdown: Get "https://cluster-sample-apiserver:6443/api?timeout=30s": dial tcp 127.0.0.1:6443: connect: connection refused
That's wired. Because I was able to do port forwarding on svc/cluster-sample-apiserver 6443:6443
@christopherhein Everything works as expected until I created a pod on the tenant cluster. The pod hangs in the
pending
state. Looks like the syncer can not connect to the tenant controlplane. I checked the syncer log and saw the following error messageI0617 16:08:03.453969 1 syncer.go:383] cluster default shutdown: Get "https://cluster-sample-apiserver:6443/api?timeout=30s": dial tcp 127.0.0.1:6443: connect: connection refused
That's wired. Because I was able to do port forwarding on
svc/cluster-sample-apiserver 6443:6443
@charleszheng44 It looks like you are using the wrong specs, can you delete that cluster then redo it making sure that the Cluster object includes the namespace in the controlPlaneEndpoint.host
you'll see that commented about in - templates/cluster-template-virtualcluster.yaml
- https://github.com/kubernetes-sigs/cluster-api-provider-nested/pull/136/files#diff-ec9ceefbdef73c7fb4f5a8ef98f5342b423b770ce83d208b185267d54ed2a10eR7-R12
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: charleszheng44, christopherhein
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/lgtm
What this PR does / why we need it: This adds integration points between VC and CAPN but more so CAPI as it doesn't use any CAPN components, solely reliant on CAPI's
v1alpha4.Cluster{}
resource. The templates/cluster-template-virtualcluster.yaml is aclusterctl
--flavor
for auto configuring the VirtualCluster CR with the cluster.Testing:
master
master
clusterctl
cd virtualcluster/
make build-images
kind load docker-image virtualcluster/vn-agent-amd64 && kind load docker-image virtualcluster/syncer-amd64 && kind load docker-image virtualcluster/manager-amd64
kubectl apply -f config/crd/
kubectl apply -f config/setup/all_in_one_capi.yaml
../cluster-api/bin/clusterctl generate cluster ${CLUSTER_NAME} --from templates/cluster-template-virtualcluster.yaml | k apply -f -
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged): Fixes #81 Fixes #135/milestone v0.1.x