Skip to content

Commit

Permalink
Add instructions about cloning the ksonnet app into a source reposito…
Browse files Browse the repository at this point in the history
…ry. (kubeflow#34)

Related to: kubeflow/kubeflow#912
  • Loading branch information
jlewi authored and k8s-ci-robot committed Jun 13, 2018
1 parent 05712d6 commit 69e6127
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions content/docs/started/getting-started-gke.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,42 @@ To Use GPUs
kubectl create -f https://raw.githubusercontent.com/GoogleCloudPlatform/container-engine-accelerators/k8s-1.9/nvidia-driver-installer/cos/daemonset-preloaded.yaml
```

## Pushing your config to source control

Start a shell in the pod

```
kubectl -n kubeflow-admin exec -it kubeflow-bootstrapper-0 /bin/bash
```

Activate the GCP service account.

```
gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
```

If you don't already have a cloud repository create one

```
gcloud source repos create ${REPO}
```

Clone the repository

```
gcloud source repos clone ${REPO} git_${REPO}
```

Copy the ksonnet app into the repo and push it

```
cp -r /opt/bootstrap/default ./git_${REPO}/ks-app
cd ./git_${REPO}
git add .
git commit -m "Kubeflow app"
git push --set-upstream origin master
```

## Deleting your deployment

To delete your deployment and reclaim all resources
Expand All @@ -228,6 +264,10 @@ To delete your deployment and reclaim all resources
gcloud deployment-manager --project=${PROJECT} deployments delete ${DEPLOYMENT_NAME}
```

```
gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
```
## Troubleshooting

Here are some tips for troubleshooting IAP.
Expand Down

0 comments on commit 69e6127

Please sign in to comment.