Skip to content

Commit

Permalink
Azure: Add TDX deployment instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
  • Loading branch information
surajssd committed May 1, 2024
1 parent 0dda5c7 commit 71c9eb2
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 5 deletions.
76 changes: 71 additions & 5 deletions content/en/docs/cloud-api-adaptor/azure/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,47 @@ There are a bunch of steps that require you to be logged into your Azure account
az login
```

Retrieve your "Subscription ID" and set your preferred region:
Retrieve your subscription ID:

```bash
export AZURE_SUBSCRIPTION_ID=$(az account show --query id --output tsv)
```

Set the region:

{{< tabpane text=true right=true persist=header >}}

{{% tab header="AMD SEV-SNP" %}}

```bash
export AZURE_REGION="eastus"
```

> **Note:** We selected the `eastus` region as it not only offers AMD SEV-SNP machines but also has prebuilt pod VM images readily available.
{{% /tab %}}

{{% tab header="Intel TDX" %}}

```bash
export AZURE_REGION="eastus2"
```

> **Note:** We selected the `eastus2` region as it not only offers Intel TDX machines but also has prebuilt pod VM images readily available.
{{% /tab %}}

{{% tab header="Non-Confidential" %}}

```bash
export AZURE_REGION="eastus"
```

> **Note:** We have chose region `eastus` because it has prebuilt pod VM images readily available.
{{% /tab %}}
{{< /tabpane >}}

### Resource group

> **Note**: Skip this step if you already have a resource group you want to use. Please, export the resource group name in the `AZURE_RESOURCE_GROUP` environment variable.
Expand Down Expand Up @@ -328,11 +362,42 @@ metadata:
EOF
```

### Populate the `kustomization.yaml` file
### Select peer-pods machine type

{{< tabpane text=true right=true persist=header >}}
{{% tab header="AMD SEV-SNP" %}}

```bash
export AZURE_INSTANCE_SIZE="Standard_DC2as_v5"
export DISABLECVM="false"
```

Find more AMD SEV-SNP machine types on [this](https://learn.microsoft.com/en-us/azure/virtual-machines/dasv5-dadsv5-series) Azure documentation.

{{% /tab %}}

{{% tab header="Intel TDX" %}}

```bash
export AZURE_INSTANCE_SIZE="Standard_DC2es_v5"
export DISABLECVM="false"
```

Find more Intel TDX machine types on [this](https://learn.microsoft.com/en-us/azure/virtual-machines/dcesv5-dcedsv5-series) Azure documentation.

{{% /tab %}}

{{% tab header="Non-Confidential" %}}

Replace the values as needed for the following environment variables:
```bash
export AZURE_INSTANCE_SIZE="Standard_D2as_v5"
export DISABLECVM="true"
```

{{% /tab %}}
{{< /tabpane >}}

> **Note**: For non-Confidential VMs use `AZURE_INSTANCE_SIZE="Standard_D2as_v5"`.
### Populate the `kustomization.yaml` file

Run the following command to update the [`kustomization.yaml`](https://github.com/confidential-containers/cloud-api-adaptor/blob/main/install/overlays/azure/kustomization.yaml) file:

Expand All @@ -355,10 +420,11 @@ configMapGenerator:
- CLOUD_PROVIDER="azure"
- AZURE_SUBSCRIPTION_ID="${AZURE_SUBSCRIPTION_ID}"
- AZURE_REGION="${AZURE_REGION}"
- AZURE_INSTANCE_SIZE="Standard_DC2as_v5"
- AZURE_INSTANCE_SIZE="${AZURE_INSTANCE_SIZE}"
- AZURE_RESOURCE_GROUP="${AZURE_RESOURCE_GROUP}"
- AZURE_SUBNET_ID="${AZURE_SUBNET_ID}"
- AZURE_IMAGE_ID="${AZURE_IMAGE_ID}"
- DISABLECVM="${DISABLECVM}"
secretGenerator:
- name: peer-pods-secret
namespace: confidential-containers-system
Expand Down
1 change: 1 addition & 0 deletions styles/config/vocabularies/coco/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ reputational
rootfs
runc
swtpm
tabpane
transformative
untrusted
userland
Expand Down

0 comments on commit 71c9eb2

Please sign in to comment.