Skip to content

Commit

Permalink
remove dev command
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrildiagne committed Oct 23, 2019
1 parent 80dff71 commit d8ce82c
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 496 deletions.
95 changes: 0 additions & 95 deletions cmd/dev-start.go

This file was deleted.

50 changes: 0 additions & 50 deletions cmd/dev-stop.go

This file was deleted.

33 changes: 0 additions & 33 deletions cmd/dev.go

This file was deleted.

5 changes: 1 addition & 4 deletions docs/contribute/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ kuda_setup
kuda_delete
kuda_get

# Remote Dev Session
kuda_dev_start
kuda_dev_stop

# App
kuda_app_dev
kuda_app_deploy
kuda_app_delete
```
Expand Down
34 changes: 13 additions & 21 deletions docs/kuda/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,42 +27,34 @@ kuda delete

Deletes the remote cluster.

## DEV
## APP

### Start
### Dev

```bash
kuda dev start [base-image]
kuda app dev <app-name>
```

Starts a remote dev session with the current working directory.

**Example:** `kuda dev start nvidia/cuda:10.1-base`

This command:

- Provisions a node with GPU on the cluster & install the nvidia driver
- Starts a development pod based on the Deep Learning VM
- Synchronise the directory provided as parameter with the remote node
Example: `kuda app dev my-app`

You can find a list of suggested `base-image` in the [remote development](remote_development.md) documentation.
Starts the application in dev mode.

### Stop
### Deploy

```bash
kuda dev stop
kuda app deploy <app-name:version>
```

Stops the remote dev session.
Example: `kuda app deploy my-app:1.0.0`

## APP
Deploys the application as serverless API.

### Deploy
### Delete

```bash
kuda app deploy <app-name:version>
kuda app delete <app-name>
```

Example: `kuda app deploy my-app:1.0.0`
Example: `kuda app delete my-app`

Deploys the application as serverless API.
Deletes the application from the cluster and container image from the registry.
9 changes: 9 additions & 0 deletions docs/kuda/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ to be allocated.

You can then query your application using any program able to make an HTTP request.
Here is an example using cURL:

```bash
curl -i -H "Host: my-hello-gpu.default.example.com" http://<YOUR-CLUSTER-IP>
```
Expand Down Expand Up @@ -70,6 +71,14 @@ The first call might need to spawn an instance which could take while. Subsequen

## 5 - Cleanup

### • Delete the app

To delete the app (the image on the registry and the knative service):

```bash
kuda app delete hello-world
```

### • Delete the cluster

The GPU nodes are setup to autoscale down to 0 when they're not in use. However, the system node will still incur charges on GCP.
Expand Down
78 changes: 0 additions & 78 deletions docs/kuda/remote_development.md

This file was deleted.

5 changes: 3 additions & 2 deletions docs/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

- [Install](kuda/install.md)
- [Getting Started](kuda/getting_started.md)
- [Remote Development](kuda/remote_development.md)
- [Reference](kuda/cli.md)
- [CLI Reference](kuda/cli.md)
- [Examples](https://github.com/cyrildiagne/kuda-apps)

## Providers

- [GCP](../providers/gcp/README.md)
- [AWS (WIP)](../providers/aws/README.md)
- Azure (Soon)
- NGC (Soon)

## Contribute

Expand Down
2 changes: 1 addition & 1 deletion providers/aws/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
2.0.0
2 changes: 0 additions & 2 deletions providers/gcp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ RUN ln -s /kuda_cmd/app_deploy.sh /usr/local/bin/kuda_app_deploy && \
ln -s /kuda_cmd/app_delete.sh /usr/local/bin/kuda_app_delete && \
ln -s /kuda_cmd/setup.sh /usr/local/bin/kuda_setup && \
ln -s /kuda_cmd/delete.sh /usr/local/bin/kuda_delete && \
ln -s /kuda_cmd/dev_start.sh /usr/local/bin/kuda_dev_start && \
ln -s /kuda_cmd/dev_stop.sh /usr/local/bin/kuda_dev_stop && \
ln -s /kuda_cmd/get.sh /usr/local/bin/kuda_get

# Go to the app home.
Expand Down
2 changes: 1 addition & 1 deletion providers/gcp/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
2.0.0
Loading

0 comments on commit d8ce82c

Please sign in to comment.