consul agent node meta can be override by catalog api

Created on 12 Jun 2019  ·  8Comments  ·  Source: hashicorp/consul

Feature Description

consul agent node meta can be override by catalog api,
https://www.consul.io/api/catalog.html#register-entity

When I set SkipNodeUpdate=false, but will be agent Synced node info return to the original.

Use Case(s)

We use consul cluster for kubernetes pods service discovery, consul agent as a sidecar to pods, As shown in the following figure.
image

We define many nginx attribute in consul node meta:

"NodeMeta": {
    "check_domain": "www.xxx.com",
    "check_fall": "2",
    "check_interval": "10000",
    "check_mode": "http",
    "check_rise": "3",
    "check_timeout": "1500",
    "check_url": "/healthcheck",
    "env": "test",
    "load_balancer": "round_robin",
    "upstream": "projectname_region_env",
    "status": "up",
    "weight": "10"
  },

I want to modify node meta attribute by consul catalog api,
to reload nginx upstream conf and not modify pod consul agent.

We try to use enable_tag_override to modify tag by catalog api, but service tag can't support map k-v struct.

Feature:

  • node meta support to be override by catalog api
  • or service tag support map k-v struct.

I wonder if my usage is correct. Please correct me.
Thanks!

Most helpful comment

@magiconair I also encountered a similar problem.

All 8 comments

@magiconair I also encountered a similar problem.

anyone have the same situation as us, could you give me some suggestions? Thanks.

/cc @pearkes @preetapan

+1

We have faced this issue, wish the feature can be support asap,tks!

Hey there,
We wanted to check in on this request since it has been inactive for at least 60 days.
If you think this is still an important issue in the latest version of Consul
or its documentation please reply with a comment here which will cause it to stay open for investigation.
If there is still no activity on this issue for 30 more days, we will go ahead and close it.

Feel free to check out the community forum as well!
Thank you!

Hey there, This issue has been automatically closed because there hasn't been any activity for at least 90 days. If you are still experiencing problems, or still have questions, feel free to open a new one :+1:

Hey there,

This issue has been automatically locked because it is closed and there hasn't been any activity for at least _30_ days.

If you are still experiencing problems, or still have questions, feel free to open a new one :+1:.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

atomantic picture atomantic  ·  4Comments

nicholasjackson picture nicholasjackson  ·  3Comments

aravind picture aravind  ·  3Comments

eshujiushiwo picture eshujiushiwo  ·  3Comments

matteoturra picture matteoturra  ·  4Comments