Skip to content

Commit

Permalink
Update example offerings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Jul 9, 2024
1 parent c25f47a commit ca63f61
Showing 1 changed file with 76 additions and 6 deletions.
82 changes: 76 additions & 6 deletions designs/odcr.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,45 @@ When there are multiple capacity reservation offerings for an instance type for
```yaml
name: c5.large
offerings:
- price:
available:
- price: ....
available: ....
requirements:
- key:
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
- key: karpenter.k8s.aws/capacity-reservation-id
operator: In
values: ["cr-111111111", "cr-222222222"]
- key: topology.kubernetes.io/zone
operator: In
values: ["us-west-2a"]
- key: topology.k8s.aws/zone-id
operator: In
values: ["usw2-az1"]
- price: ....
available: ....
requirements:
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
- key: topology.kubernetes.io/zone
operator: In
values: ["us-west-2a"]
- key: topology.k8s.aws/zone-id
operator: In
values: ["usw2-az1"]
- price: ....
available: ....
requirements:
- key: karpenter.sh/capacity-type
operator: In
values: ["spot"]
- key: topology.kubernetes.io/zone
operator: In
values: ["us-west-2a"]
- key: topology.k8s.aws/zone-id
operator: In
values: ["usw2-az1"]
```

### Representing ODCR Available Instance Counts in Instance Type Offerings
Expand All @@ -268,10 +303,45 @@ An updated version of the instance type offerings for an ODCR, on-demand, and sp
```yaml
name: c5.large
offerings:
- price:
available:
- price: 0.00000001
available: 5
requirements:
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
- key: karpenter.k8s.aws/capacity-reservation-id
operator: In
values: ["cr-111111111", "cr-222222222"]
- key: topology.kubernetes.io/zone
operator: In
values: ["us-west-2a"]
- key: topology.k8s.aws/zone-id
operator: In
values: ["usw2-az1"]
- price: 0.085
available: 4294967295
requirements:
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
- key: topology.kubernetes.io/zone
operator: In
values: ["us-west-2a"]
- key: topology.k8s.aws/zone-id
operator: In
values: ["usw2-az1"]
- price: 0.0315
available: 4294967295
requirements:
- key:
- key: karpenter.sh/capacity-type
operator: In
values: ["spot"]
- key: topology.kubernetes.io/zone
operator: In
values: ["us-west-2a"]
- key: topology.k8s.aws/zone-id
operator: In
values: ["usw2-az1"]
```

## Capacity Reservation Expiration
Expand Down

0 comments on commit ca63f61

Please sign in to comment.