Skip to content

Commit

Permalink
Update the README
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Feb 13, 2024
1 parent fff2f87 commit 6d9ca71
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,15 @@ The CI workflow requires login to the Azure account, and we use OpenID Connect t

Go to the entra.microsoft.com and navigate to the `aiidalab-sp` -> `Certificates & secrets` -> `Fedrated credentials`. Set credentials for the GitHub production and staging environments.

On the GitHub repository, the secrets are set for `production` and `staging` environments respectively.
On the GitHub repository, the secrets are set for `production` and `staging` environments respectively.

The `aiidalab-sp` was only assigned the Contributor role for the VNet, and it is not yet assigned to the resource group. This is to avoid the service principal to have too much access to the resources.

To get the kube credentials, the `aiidalab-sp` should be assigned to cluster `demo-server` as well.

```bash
az ad sp create-for-rbac \
--name aiidalab-sp \
--role Contributor \
--scopes /subscriptions/<subscription-id>/resourcegroups/aiidalab_demo_server_marvel/providers/Microsoft.ContainerService/managedClusters/demo-server $VNET_ID \
```

0 comments on commit 6d9ca71

Please sign in to comment.