Closed lemonit-eric-mao closed 3 years ago
Thanks for reporting the issue and for the detailed logs @lemonit-eric-mao
I see that you validated CoreDNS ConfigMap to include lighthouse DNS in Cluster1. I hope it's looking good even in Cluster2 and Cluster3?
There are two aspects to look at
Why DNS resolution failed for nginx.nginx-test.svc.clusterset.local
in spite of having a Service Import entry in the local cluster. For this, we would need some additional info from Lighthouse pods. I'm looping in @vthapar @aswinsuryan who can guide you on this.
Looking at the logs you shared, all the tunnels seem to be successfully established. However, it is not clear if you created the Calico IPPools. If not, please create the pools as shown here for your setup - https://gist.github.com/sridhargaddam/ff4578b613901f93c62b105565cd690f
Also, do let us know if curl to 10.98.224.208:8080
is working in Cluster2. This will help us to know if the issue is with DNS resolution alone or if there is some issue even with datapath connectivity.
@lemonit-eric-mao It seems like nginx-test
namespace was not existing in cluster02 initially and was created just before running curl. Submariner expects the namespace of the service that is exported to be present in all the joined clusters. It is not created explicitly. The endpointslices that are created would be synced to the service namespace in all the joined clusters. Here that step would have failed. Without active endpoints in endpointslices we will not return the ClusterIP from that particular cluster.
Could you please retry by creating the service namespace in all the clusters where the service will be used?
This issue has been automatically marked as stale because it has not had activity for 60 days. It will be closed if no further activity occurs. Please make a comment if this issue/pr is still valid. Thank you for your contributions.
The deployment is successful, but the applications between clusters cannot access each other
Official Website Document
Preconditions
For k8s cluster requirements, the network plug-in uses calico
Modify the calico.yaml file and add the following environment variables
Official Installation Document
Official github document
Download and install
Qiniu Cloud Download
[Pull k8s cluster.kube/config](http://www.dev-share.top/2020/09/29/k8s-%e5%a4%9a%e9%9b% 86%e7%be%a4%e5%88%87%e6%8d%a2/ "Pull k8s cluster.kube/config") Jump link
Execute on cluster 01 master node
subctl deploy-broker --kubeconfig <PATH-TO-KUBECONFIG-BROKER>
subctl deploy-broker --kubeconfig <PATH-TO-KUBECONFIG-BROKER> --service-discovery (enable multi-cluster service discovery optional)
Execute on cluster 01 master node, join the first k8s cluster
subctl join broker-info.subm --disable-nat (disable NAT for IPsec) --kubeconfig <PATH-TO-JOINING-CLUSTER> --clusterid <ID>
Execute on cluster 01 master node, join the second k8s cluster
Execute on cluster 01 master node, join the third k8s cluster
Deployment complete
, if there is any problem, please follow the steps below to troubleshootOfficial troubleshooting document Jump link
View and confirm all submariner configurations
View and confirm cluster gateway
View and confirm all gateways
View and confirm the current cluster gateway details
View confirmation submariner-lighthouse-coredns
Test cluster 01
Exposure service (currently still in "cluster-03")
Switch to cluster 02 to test
I don't know where I am wrong. Please teach me