Skip to content

clustermesh issue: io.cilium/global-service: "true" is not working for headless service (with selectors) #7070

@bjethwan

Description

@bjethwan

Bug report

I was trying to run couchbase in one k8s cluster (let's call it a)
And a microservice (accessing that couchbase cluster) in another k8s cluster (let's call it b)
couchbase defines a headless service with selectors.
And two other services directly pointing to the couchbase cluster pods.
I dumped the services from one cluster where the couchbase database is actually running.
And then applied the the io.cilium/global-service:
k8s cluster b showing local clusterip services pointing to k8s cluster a pods
"true" annotation on all the 3 services.
And applied those services in both the k8s cluster.
In the b k8s cluster I could see the two clusterip based services redirecting to remote k8s cluster pods.
But there was no mention of the prime headless service.
Check this screenshot.

General Information

  • Cilium version (run cilium version)
    Client: 1.4.90 3adbd7f 2019-02-12T19:27:16-08:00 go version go1.11.1 linux/amd64
    Daemon: 1.4.90 3adbd7f 2019-02-12T19:27:16-08:00 go version go1.11.1 linux/amd64

  • Kernel version (run uname -a)
    4.14.96-coreos

  • Orchestration system version in use (e.g. kubectl version, Mesos, ...)
    kubectl version
    Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:54:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.6", GitCommit:"b1d75deca493a24a2f87eb1efde1a569e52fc8d9", GitTreeState:"clean", BuildDate:"2018-12-16T04:30:10Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

  • Link to relevant artifacts (policies, deployments scripts, ...)

  • Upload a system dump (run curl -sLO releases.cilium.io/tools/cluster-diagnosis.zip && python cluster-diagnosis.zip sysdump and then attach the generated zip file)
    a-cluster-diagnosis.zip
    b-cluster-diagnosis.zip

How to reproduce the issue

  1. instruction 1
  2. instruction 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clustermeshRelates to multi-cluster routing functionality in Cilium.area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.kind/community-reportThis was reported by a user in the Cilium community, eg via Slack.kind/featureThis introduces new functionality.pinnedThese issues are not marked stale by our issue bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions