# Why those services still exist in node k8s-sync after set connectInject.enable=false?

**URL:** <https://discuss.hashicorp.com/t/why-those-services-still-exist-in-node-k8s-sync-after-set-connectinject-enable-false/33507>\
**Category:** Consul\
**Tags:** connect\
**Created:** [December 22, 2021, 9:43am UTC](https://discuss.hashicorp.com/t/why-those-services-still-exist-in-node-k8s-sync-after-set-connectinject-enable-false/33507 "2021-12-22T09:43:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiyt27](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/chiyt27/32/24696_2.png) [@chiyt27](https://discuss.hashicorp.com/u/chiyt27)\
**Post date:** [December 22, 2021, 9:43am UTC](https://discuss.hashicorp.com/t/why-those-services-still-exist-in-node-k8s-sync-after-set-connectinject-enable-false/33507/1 "2021-12-22T09:43:08Z")

</div>

Hello, I practice consul in my k8s single node cluster.  
At first, I try to change 2 variables in the consul-0.38.0/values.yaml  
‘connectInject.enable=true’ and ‘syncCatalog.enable=true’, then those services are showed in a new node - k8s-sync.

Now I undo the changes, set ‘connectInject.enable=false’ and ‘syncCatalog.enable=false’, and helm regrade again.  
But Consul UI still has k8s-sync, and those services and node don’t be deregistered.

How to deregister resources after connectInject is false?

---

<div class="post-metadata">

**Author:** ![blake](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/blake/32/27620_2.png) [@blake](https://discuss.hashicorp.com/u/blake)\
**Post date:** [January 3, 2022, 7:05am UTC](https://discuss.hashicorp.com/t/why-those-services-still-exist-in-node-k8s-sync-after-set-connectinject-enable-false/33507/2 "2022-01-03T07:05:52Z")

</div>

Hi @chiyt27,

Synced services are not automatically removed from Consul when `syncCatalog.enable` is changed from `true` to `false`.

You will need to manually deregister the `k8s-sync` node from Consul’s service catalog using the [`/v1/catalog/deregister`](https://www.consul.io/api-docs/catalog#deregister-entity) API endpoint in order to remove the associated services.

For example:

```auto
$ curl --request PUT $CONSUL_HTTP_ADDR/v1/catalog/deregister --data '{"Node": "k8s-sync"}'

```
