Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Sameer Vohra <[email protected]>
  • Loading branch information
xtreme-sameer-vohra committed Nov 1, 2020
1 parent efd76d8 commit 3119926
Showing 1 changed file with 90 additions and 97 deletions.
187 changes: 90 additions & 97 deletions 075-k8s-runtime/proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,118 +72,112 @@ Ideally, each instance of the component should have its own unique identity.
# Milestones
## Operator Use Cases
1. A K8s worker & external Concourse web (Simpler for local development)
+ register worker
+ heartbeat
+ register worker
+ heartbeat
1. Fly workers
1. Fly containers
1. Fly volumes
1. Pod GC'ing - only delete pods we know about. Ignore other pods.
1. Volume GC'ing
1. A K8s worker & in-cluster Concourse web
1. Worker retiring/landing
+ fly land-worker
+ fly prune-worker
+ fly land-worker
+ fly prune-worker
1. Tracing
1. Metrics (Placeholder)
1. External K8s worker that is not reachable by the web

## Developer Use Cases
1. Hello World (without `image_resource`)
```
---
jobs:
- name: job
public: true
plan:
- task: simple-task
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
run:
path: echo
args: ["Hello, world!"]
```
+ Task with params
+ Container limits
+ Privileged container
+ fly abort
+ stream/capture stdout & stderr

```
---
jobs:
- name: job
public: true
plan:
- task: simple-task
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
run:
path: echo
args: ["Hello, world!"]
```
* Task with params
* Container limits
* Privileged container
* fly abort
* stream/capture stdout & stderr
1. Hello World (2 tasks with inputs/outputs,without `image_resource`)
```
---
jobs:
- name: create-and-consume
public: true
plan:
- task: make-a-file
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
run:
path: sh
args:
- -exc
- ls -la; echo "Created a file on $(date)" > ./files/created_file
outputs:
- name: files
- task: consume-the-file
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
inputs:
- name: files
run:
path: cat
args:
- ./files/created_file
```
+ Task with output
+ Task with input
+ Input mapping
+ Output mapping
+ Task cache
+ fly clear-task-cache
+ rootfs_uri ?

```
---
jobs:
- name: create-and-consume
public: true
plan:
- task: make-a-file
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
run:
path: sh
args:
- -exc
- ls -la; echo "Created a file on $(date)" > ./files/created_file
outputs:
- name: files
- task: consume-the-file
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
inputs:
- name: files
run:
path: cat
args:
- ./files/created_file
```
* Task with output
* Task with input
* Input mapping
* Output mapping
* Task cache
* fly clear-task-cache
* rootfs_uri ?
1. Fly Execute
+ `params`
+ worker `tag`
+ `--inputs-from`
+ upload inputs
+ image from a pipeline->job->step
+ outputs

* `params`
* worker `tag`
* `--inputs-from`
* upload inputs
* image from a pipeline->job->step
* outputs
1. Fly watch

1. Fly Hijack

1. Booklit Sample (Resources support)
```
resources:
- name: booklit
type: git
source: {uri: "https://github.com/vito/booklit"}
jobs:
- name: unit
plan:
- get: booklit
trigger: true
```
+ Check step
+ logs (capture stderr)
+ abort
+ Get step
+ logs (capture stderr)
+ abort

```
resources:
- name: booklit
type: git
source: {uri: "https://github.com/vito/booklit"}
jobs:
- name: unit
plan:
- get: booklit
trigger: true
```
* Check step
* logs (capture stderr)
* abort
* Get step
* logs (capture stderr)
* abort
1. Put step
```
resources:
Expand All @@ -207,9 +201,8 @@ Ideally, each instance of the component should have its own unique identity.
repository: booklit
```

+ logs (capture stderr)
+ abort

* logs (capture stderr)
* abort
1. Hello World (`Task.file`)

```
Expand Down

0 comments on commit 3119926

Please sign in to comment.