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

Feature request : allow prefixing and overriding Consul service-name #5

Open
BarthV opened this issue Aug 31, 2017 · 0 comments
Open

Comments

@BarthV
Copy link
Contributor

BarthV commented Aug 31, 2017

Hi !

It should be possible to ask kube2consul to dynamicly change the target service name in Consul based on Endpoint metadata. Since Annotations are not available in Endpoints metadata, I suggest using only label for this case.

This is what I'm thinking about :

apiVersion: v1
kind: Service
metadata:
  name: my-service-02
  namespace: myservices
  labels:
    k2c-servicename: 'my-svc-two-in-consul'
    k2c-serviceprefix: 'foobar-'
spec:
[...]

Obviously, k2c-servicename wins if both are specified.

Thanks !

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