Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Aug 17, 2021
1 parent 8949ea1 commit 69cb5be
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,15 @@ spec:
weight: ...
- arn: ...
weight: ...
status:
listenerARN: ...
forwardConfig:
priority: 10
targetGroups:
- arn: ...
weight: ...
- arn: ...
weight: ...
```

`system-controller` uses either `targetgroupBindingSelector: svc=web` or `arnFromLabel: targetGroupARN` that is available in the embedded `alb` spec to determine the ARN of the target group for each cluster, and places those ARNs under `ALB.spec.forwardConfig.targetGroups`.
Expand All @@ -423,6 +432,8 @@ Then, `system-controller` gradually updates `alb.spec.forwardConfig.targetGroups

`alb-controller` reconciles `ALB` resources by calling AWS APIs to update ALB Listener Rules.

`ALB`'s `status` sub-resource contains all the fields of the `spec` that applied to AWS. `system-controller` compares `alb.spec` and `alb.status` and move the process forward only after the two becomes in-sync. Otherwise, it might fail to update weights by `stepWeight` when in a temporary AWS failure.

### `Check`

```
Expand Down

0 comments on commit 69cb5be

Please sign in to comment.