Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I just use serviceImport across the cluster, I cannot access the server #15

Open
zishen opened this issue Jun 21, 2023 · 0 comments

Comments

@zishen
Copy link

zishen commented Jun 21, 2023

I deploy a server foo in member1, and use serviceImport to import this foo in another k8s cluster named member2.
Member2 donnot has foo or it's endpointSlice. But I cannot access "foo.default.svc.cluster.local" in member2, but ok in member1.

I've already done something:

1).Config the coredns corefile:

.:53 {
multicluster cluster.local.
}

2). Build and install the multicluster as

...
kubernetes:kubernetes
multicluster:github.com/coredns/multicluster
...

in plugin.cfg

3). Add the RBAC

- apiGroups:
  - multicluster.x-k8s.io
  resources:
  - serviceimports
  verbs:
  - list
  - watch

4). The serviceImport.yaml is :

apiVersion: multicluster.x-k8s.io/v1alpha1
kind: ServiceImport
metadata:
  name: foo
  namespace: default
spec:
  type: ClusterSetIP
  ports:
  - name: foo
    port: 80
    protocol: TCP
  ips:
  - "10.10.0.5"

version: k8s:1.21,coredns:v1.9.3 and above version

So, what's wrong with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant