aws / aws-cloud-map-mcs-controller-for-k8s

K8s controller implementing Multi-Cluster Services API based on AWS Cloud Map.
https://aws.amazon.com/blogs/opensource/kubernetes-multi-cluster-service-discovery-using-open-source-aws-cloud-map-mcs-controller/
Apache License 2.0
88 stars 28 forks source link

Ability to use non k8s resources #268

Open marekgryn opened 1 year ago

marekgryn commented 1 year ago

Hi, is it possible to use other resources already registered in Cloud Map? I.e. I have registered RDS instance and when trying to discover it using your service I'm getting error like "error":"cannot find the attribute AWS_INSTANCE_IPV4" as for RDS is in use attribute AWS_INSTANCE_CNAME. Thanks in advance

runakash commented 1 year ago

Hello @marekgryn - How are you trying discover RDS instance? If you can also make a post at the slack channel.

marekgryn commented 1 year ago

Generally was experimenting with adding custom attributes to created by me Cloud Map instance for RDS. Added attributes

READY = "true"
CLUSTERSET_ID = "clusterset1" 

and your controller started to see this but cannot handle it - in logs occur the entry as described in first post. I think could be nice to support other resources/instances (even not created by controller) like RDS in my case