Skip to content

Commit 02a47dc

Browse files
Merge pull request #540 from VanillaSpoon/tutorial
docs: Minor adjustments to tutorial
2 parents acf42a9 + 026b980 commit 02a47dc

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

doc/usage/aw-02.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ spec:
66
schedulingSpec:
77
minAvailable: 2
88
resources:
9-
Items:
9+
GenericItems:
1010
- replicas: 1
11-
type: Deployment
12-
template:
11+
generictemplate:
1312
apiVersion: apps/v1
1413
kind: Deployment
1514
metadata:

doc/usage/tutorial.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,40 +58,40 @@ spec:
5858
memory: 256Mi
5959
```
6060
61-
The yaml file above is used to create an `AppWrapper` named `0001-aw-generic-deployment-2` which encompasses a Kubernetes Job resulting in the creation of 2 pods. The appwrappers's pod will be scheduled by kubernetes scheduler.
61+
The yaml file above is used to create an `AppWrapper` named `0001-aw-generic-deployment-1` which encompasses a Kubernetes Job resulting in the creation of 2 pods. The appwrappers's pod will be scheduled by kubernetes scheduler.
6262

6363
Create the `AppWrapper`
6464

6565
```bash
6666
kubectl create -f aw-01.yaml
6767
```
6868

69-
Check `AppWrapper` job creation with the command below. You should see the `0001-aw-generic-deployment-2` app wrapper.
69+
Check `AppWrapper` job creation with the command below. You should see the `0001-aw-generic-deployment-1` app wrapper.
7070

7171
```bash
7272
$ kubectl get appwrappers
7373
NAME AGE
74-
0001-aw-generic-deployment-2 59s
74+
0001-aw-generic-deployment-1 59s
7575
```
7676

7777
Check `AppWrapper` job status by describing the `AppWrapper`. The `Status:` stanza will show the `State` of `Running` if it has successfully deployed.
7878

7979
```bash
80-
$ kubectl describe appwrapper 0001-aw-generic-deployment-2
80+
$ kubectl describe appwrapper 0001-aw-generic-deployment-1
8181
...
8282
Status:
8383
Canrun: true
8484
...
8585
State: Running
8686
```
8787

88-
Check the pods status of the `AppWrapper` job. There should be 1 `0001-aw-generic-deployment-2` pod running.
88+
Check the pods status of the `AppWrapper` job. There should be 2 `0001-aw-generic-deployment-1` pods running.
8989

9090
```bash
9191
$ kubectl get pods
9292
NAME READY STATUS RESTARTS AGE
93-
0001-aw-generic-deployment-2-79988f7ddd-bmzwb 1/1 Running 0 91s
94-
0001-aw-generic-deployment-2-79988f7ddd-xkrxs 1/1 Running 0 91s
93+
0001-aw-generic-deployment-1-79988f7ddd-bmzwb 1/1 Running 0 91s
94+
0001-aw-generic-deployment-1-79988f7ddd-xkrxs 1/1 Running 0 91s
9595
```
9696

9797
This step showed a simple deployment of an `AppWrapper` job. The next step will show how queuing works in the __Multi-Cluster Application Dispatcher__ Controller.
@@ -210,10 +210,9 @@ spec:
210210
schedulingSpec:
211211
minAvailable: 2
212212
resources:
213-
Items:
213+
GenericItems:
214214
- replicas: 1
215-
type: Deployment
216-
template:
215+
generictemplate:
217216
apiVersion: apps/v1
218217
kind: Deployment
219218
metadata:

0 commit comments

Comments
 (0)