Skip to content

Commit

Permalink
Revert "[secureboot] Service account example improvement (#88)"
Browse files Browse the repository at this point in the history
This reverts commit a17548b.
  • Loading branch information
cjac authored Sep 11, 2024
1 parent a17548b commit 135b534
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions examples/secure-boot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,16 @@ run from the root of the custom-images git repository:
```bash
PROJECT_ID=your-project-here
PROJECT_NUMBER=your-project-nnnn-here
CLUSTER_NAME=your-cluster-name-here
my_bucket=your-bucket-here
custom_image_zone=your-zone-here

export SA_NAME=sa-${CLUSTER_NAME}
export GSA=${SA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com

gcloud projects add-iam-policy-binding ${PROJECT_ID} \
--member=serviceAccount:${GSA} \
--member=serviceAccount:${PROJECT_NUMBER}[email protected] \
--role=roles/secretmanager.secretAccessor
gcloud config set project ${PROJECT_ID}

gcloud auth login

# variables *_secret_name_, secret_project, secret_version defined here:
eval $(bash examples/secure-boot/create-key-pair.sh)
metadata="public_secret_name=${public_secret_name}"
metadata="${metadata},private_secret_name=${private_secret_name}"
Expand All @@ -41,8 +36,7 @@ dataproc_version=2.2-debian12
customization_script=examples/secure-boot/install-nvidia-driver-debian12.sh
#image_name="nvidia-open-kernel-2.2-ubuntu22-$(date +%F)"
#image_name="nvidia-open-kernel-2.2-rocky9-$(date +%F)"
#image_name="nvidia-open-kernel-2.2-debian12-$(date +%F)"
image_name="nvidia-open-kernel-${dataproc_version}-$(date +%F)"
image_name="nvidia-open-kernel-2.2-debian12-$(date +%F)"
disk_size_gb="50"

python generate_custom_image.py \
Expand Down

0 comments on commit 135b534

Please sign in to comment.