Using Console
Using CLI
[CLUSTER_NAME]
with the name of your Kubernetes cluster and [ZONE]
with the zone in which your cluster is running.
[DISK_NAME]
with the name of the boot disk obtained from step 2, [ZONE]
with the zone in which your cluster is running and [USER_EMAIL]
with the email address of the user who will manage the key.
[DISK_NAME]
with the name of the boot disk obtained from step 2, [ZONE]
with the zone in which your cluster is running, [KEY_NAME]
with the name of the customer-managed key and [KEY_RESOURCE_ID]
with the ID of the key resource.
Using Python
path/to/your/credentials.json
with the actual path to your GCP service account credentials file, project-id
with your GCP project ID, location
with the location of your key ring, and my-key
with the name of your encryption key.path/to/your/credentials.json
with the actual path to your GCP service account credentials file, project-id
with your GCP project ID, location
with the location of your key ring, my-key
with the name of your encryption key, and my-cluster
with the name of your Kubernetes cluster.