diff --git a/075-k8s-runtime/proposal.md b/075-k8s-runtime/proposal.md index 99d317f..f5638df 100644 --- a/075-k8s-runtime/proposal.md +++ b/075-k8s-runtime/proposal.md @@ -72,8 +72,8 @@ 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 @@ -81,109 +81,103 @@ Ideally, each instance of the component should have its own unique identity. 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: @@ -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`) ```