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

ServiceExportReconciler keep re registering instances in aws cloudmap

Open
#312 10 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Go
Stars
98
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Hi,

We are running v0.3.1 of aws-cloud-map-mcs-controller to register services to aws cloudmap. we have another application looks up cloudmap for service discovery. we have a requirement to populate some custom attributes for cloud map instances.

is there a way to define custom attributes in ServiceExport definition of kubernates object?. currently its defined like this.

kind: ServiceExport
apiVersion: multicluster.x-k8s.io/v1alpha1
metadata:
namespace: namespace1
name: service-name

currently we are using a lambda trigger in aws to populate these custom attributes. this is causing an issue with ServiceExportReconciler , its keep re registering instances in aws cloudmap as endpoint/instance definition is different in aws cloudmap to what controller desires . is there a way to stop this re register from happening?.

Thank you.

Contributor guide

Open the contributing guide

Research direction

Start by reading the ServiceExportReconciler and the ServiceExport definition shown in the issue, then trace how endpoint and instance definitions are registered in AWS Cloud Map. Determine whether custom attributes can be represented in the ServiceExport or preserved during reconciliation. Done means the requested attributes and re-registration behavior have a documented, tested resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go
Domain
backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.