Skip to content

1974 ocean commitments #5801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/docs/ocean/_media/ocean-commitments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/docs/ocean/features/commitments-aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Azure SPs offer a flexible pricing model that lets you save up to 65% on your Az

## Commitments Scenarios

<img width="1000" src="https://github.com/user-attachments/assets/ae781249-3fff-4647-9cc4-35bd8573abf8" />
<img src="https://docs.spot.io//ocean/_media/ocean-commitments.png" />

![ocean-commitments](https://github.com/user-attachments/assets/0bffd078-f98c-4a03-ba73-9dcafd7e9891)


### Launching a VM
Expand Down
24 changes: 13 additions & 11 deletions src/docs/ocean/features/commitments-setup-aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,32 @@ Follow the instructions below while referring to the [Azure documentation](https
2. Go to the virtual node group where you want to turn on the utilize RSs/SPs feature. This can be any of your virtual node groups or the virtual node group template. Ocean recommends enabling this feature on the virtual node group template so that it is applied to all your virtual node groups in the cluster. See [Manage AKS Virtual Node Groups](https://docs.spot.io/ocean/tutorials/manage-virtual-nd-groups-aks)
3. In the Ocean autoscaler strategy area of the virtual node group, click **Add permissions**.

<img width="600" src="https://github.com/user-attachments/assets/9fa2fd52-3d18-447f-a11c-68a0764da146" />

GET NEW PICTURE


### Step 1: App Registrations

1. In Connect RIs/SPs to Spot wizard, step 1, create (register) a new Azure app or upgrade an existing one.

Upgrade:

<img width="500" src="https://github.com/user-attachments/assets/52ed6761-4d7a-4a8f-b05c-d0356392b217" />

<img src="https://docs.spot.io/managed-instance/_media/commitments_register-upgrade-app.png" />

New:

<img width="500" src="https://github.com/user-attachments/assets/86e527cd-f95d-4be6-a44f-7e01da0c21c4" />
<img src="https://docs.spot.io/managed-instance/_media/commitments-register-new-app.png" />

2. Copy the following credentials from your Azure app and paste them into the fields:
3. Copy the following credentials from your Azure app and paste them into the fields:
* Application (client) ID.
* Directory (tenant) ID.

3. Go to Step 2: Certificates and Secrets
4. Go to Step 2: Certificates and Secrets

### Step 2: Certificates and Secrets

<img width="500" src="https://github.com/user-attachments/assets/e61b0e9d-103d-47f2-b46e-74cac43daa82" />


<img src="https://docs.spot.io/managed-instance/_media/commitments-certs-and-secrets.png" />

1. Copy the following credentials from your Azure app and paste them into the fields:
* Application secret expiration date.
* Client secret value.
Expand All @@ -77,7 +78,8 @@ Follow the instructions below while referring to the [Azure documentation](https

### Step 3: Permissions Assignment

<img width="500" src="https://github.com/user-attachments/assets/71cae309-ad03-4c61-9859-c455bef17ec2" />

<img src="https://docs.spot.io/managed-instance/_media/commitments-permss-with-reader.png" />

>IMPORTANT:
>
Expand All @@ -90,7 +92,7 @@ These permissions give you access to all the resources under the same tenant. Yo

1. Select the permissions in accordance with those you purchased from Azure. By default, both RI and SP are selected.

2. Use the following Azure PowerShell script to assign the Reservation Reader role at the tenant level with PowerShell:
2. Use the following Azure PowerShell script to assign the Reservation Reader role / Savings Plan role at the tenant level with PowerShell:

```
Import-Module Az.Accounts
Expand Down