This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DEPLOYMENT_NAME="single-notebook" | |
gcloud deployment-manager deployments delete "${DEPLOYMENT_NAME}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> gcloud deployment-manager deployments create single-notebook --config create_notebook.yaml | |
The fingerprint of the deployment is $$$$$$ | |
Waiting for create [operation-$$$$$$$]...done. | |
Create operation operation-$$$$$$ completed successfully. | |
NAME TYPE STATE ERRORS INTENT | |
my-notebook compute.v1.instance COMPLETED [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
- path: notebook_instance.jinja | |
resources: | |
- name: my-notebook | |
type: notebook_instance.jinja | |
properties: | |
proxy-mode: mail | |
mail: <gmail> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
- path: notebook_instance.jinja | |
resources: | |
- name: my-notebook | |
type: notebook_instance.jinja | |
properties: | |
gpu-type: nvidia-tesla-t4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
- path: notebook_instance.jinja | |
resources: | |
- name: my-notebook | |
type: notebook_instance.jinja | |
properties: | |
network: https://www.googleapis.com/compute/v1/projects/<project>/global/networks/<VPC_name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
- path: notebook_instance.jinja | |
resources: | |
- name: my-notebook | |
type: notebook_instance.jinja | |
properties: | |
network: https://www.googleapis.com/compute/v1/projects/<project>/global/networks/<VPC_name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DEPLOYMENT_NAME="single-notebook" | |
gcloud deployment-manager deployments create "${DEPLOYMENT_NAME}" --config create_notebook.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
- path: notebook_instance.jinja | |
resources: | |
- name: my-notebook | |
type: notebook_instance.jinja |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info: | |
title: AI Platform Notebook Template | |
author: Viacheslav V Kovalevskyi ([email protected]) | |
description: Creates a new notebook instance | |
version: 1.0 | |
imports: | |
- path: notebook_instance.jinja | |
properties: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
- name: {{ env["name"] }} | |
type: compute.v1.instance | |
properties: | |
zone: {{ properties["zone"] }} | |
machineType: https://www.googleapis.com/compute/v1/projects/{{ env["project"] }}/zones/{{ properties["zone"] }}/machineTypes/{{ properties["machineType"] }} | |
disks: | |
- deviceName: boot | |
type: PERSISTENT | |
boot: true |