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 CONTAINER_URI=...#"gcr.io/deeplearning-platform-release/tf2-cpu.2-1" | |
export IMAGE_NAME=...#"notebook-with-container-v1" | |
export ZONE=...#"us-west1-b" | |
export INSTANCE_NAME=...#"container-instance" | |
export INSTANCE_TYPE=...#"n1-standard-8" | |
export ACCESS_MAIL=...#"[email protected]" | |
export IMAGE_PROJECT=...#"deeplearning-platform" | |
gcloud compute instances create "${INSTANCE_NAME}" \ | |
--zone="${ZONE}" \ | |
--image="${IMAGE_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
readonly IMAGE_NAME="gcr.io/deeplearning-platform-release/tf2-gpu.2-0:m36" | |
docker run -p 127.0.0.1:8080:8080/tcp -v "${HOME}:/home" "${IMAGE_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
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: proxy-agent | |
labels: | |
app: proxy-agent | |
spec: | |
selector: | |
matchLabels: | |
app: proxy-agent |
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
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: RoleBinding | |
metadata: | |
name: agent-runner | |
labels: | |
app: agent-runner | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: Role | |
name: agent-runner |
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
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: agent-runner | |
labels: | |
app: agent-runner | |
rules: | |
- apiGroups: | |
- "" | |
resources: |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: agent-runner |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: jupyterlab | |
labels: | |
app: jupyterlab | |
spec: | |
ports: | |
- name: http | |
port: 80 |
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
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: jupyterlab | |
labels: | |
app: jupyterlab | |
spec: | |
selector: | |
matchLabels: | |
app: jupyterlab |
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
https://github.com/gclouduniverse/notebooks-on-kubernetes |
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
git clone https://github.com/gclouduniverse/gcp-notebook-share-dlvm-extension.git --branch v0.1.1 | |
cd gcp-notebook-share-dlvm-extension | |
./install.sh |