Skip to content

Commit 01f1c6c

Browse files
committed
add action to deploy slides
deploys both html and pdf version
1 parent d29b829 commit 01f1c6c

File tree

3 files changed

+53
-14
lines changed

3 files changed

+53
-14
lines changed

.github/workflows/slides.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: marp-to-pages
2+
concurrency: marp-to-pages
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Copy images
19+
run: mkdir build && cp -R imgs build/imgs
20+
21+
- name: Marp Build (html)
22+
uses: docker://marpteam/marp-cli:v1.7.0
23+
with:
24+
args: presentation.md -o build/index.html
25+
env:
26+
MARP_USER: root:root
27+
28+
- name: Marp Build (pdf)
29+
uses: docker://marpteam/marp-cli:v1.7.0
30+
with:
31+
args: --pdf --allow-local-files presentation.md -o build/presentation.pdf
32+
env:
33+
MARP_USER: root:root
34+
35+
- name: Deploy production
36+
uses: JamesIves/github-pages-deploy-action@v4
37+
with:
38+
branch: gh-pages
39+
folder: ./build/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ docker run -i --privileged --rm knetsim
3131

3232
To preview:
3333
```
34-
marp -p ./presentation/presentation.md
34+
marp -p ./presentation.md
3535
```
3636

3737
## Checking

presentation/presentation.md renamed to presentation.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Have a hands-on experience with a learning tool focused on Networking aspects of
4141
+ Kubernetes (k8s): Container Orchestration
4242
+ Across a cluster of machines
4343
+ Manage automated deployment, scaling
44-
![bg right:50% fit](../imgs/k8s_img_intro.png)
44+
![bg right:50% fit](./imgs/k8s_img_intro.png)
4545

4646
---
4747

@@ -50,8 +50,8 @@ Have a hands-on experience with a learning tool focused on Networking aspects of
5050
+ Pods:Application specific logical host.
5151
- group of containers with shared storage and network resources.
5252

53-
![](../imgs/pod_container.png)
54-
![bg right:50% fit](../imgs/pod_yml.png)
53+
![](./imgs/pod_container.png)
54+
![bg right:50% fit](./imgs/pod_yml.png)
5555

5656
---
5757

@@ -61,10 +61,10 @@ Have a hands-on experience with a learning tool focused on Networking aspects of
6161
- Manage replicas and scaling of pods (for a desired state)
6262
- Group of containers with shared storage and network resources.
6363

64-
![](../imgs/deploy_get.png)
65-
![](../imgs/deploy_podget.png)
64+
![](./imgs/deploy_get.png)
65+
![](./imgs/deploy_podget.png)
6666

67-
![bg right:50% fit](../imgs/deploy_yml.png)
67+
![bg right:50% fit](./imgs/deploy_yml.png)
6868

6969
---
7070
## Kubernetes Overview
@@ -76,7 +76,7 @@ Have a hands-on experience with a learning tool focused on Networking aspects of
7676
- Handle multiple replica with single end point
7777
- Support dynamic up/down of pods
7878

79-
![bg right:50% fit](../imgs/service_yml.png)
79+
![bg right:50% fit](./imgs/service_yml.png)
8080

8181
---
8282
## Mini demo: k8s hands on :hammer:
@@ -107,7 +107,7 @@ https://kubebyexample.com/concept/deployments
107107
4. App net features such as: rate limiting, health checks, blue-green testing
108108

109109
Now, do this across multiple clusters :scream:
110-
![bg right:40% fit](../imgs/multi-cluster-kubernetes-architecture.png)
110+
![bg right:40% fit](./imgs/multi-cluster-kubernetes-architecture.png)
111111

112112
---
113113

@@ -291,7 +291,7 @@ ip netns del myns
291291

292292
# Our Topology
293293

294-
![bg right:70% fit](../imgs/schema.png)
294+
![bg right:70% fit](./imgs/schema.png)
295295

296296
---
297297

@@ -314,7 +314,7 @@ mininet>
314314

315315
## Workers
316316

317-
![bg right:30% fit](../imgs/schema.png)
317+
![bg right:30% fit](./imgs/schema.png)
318318

319319
+ We have 2 clusters with 3 workers each:
320320
+ `C0w1`, `C0w2` and `C0w3` are workers => mininet hosts
@@ -374,7 +374,7 @@ mininet> py C0w1.delete_container("c10")
374374
+ 2 pods need to communicate
375375
+ Pod: group of containers with shared storage and network resources.
376376

377-
![bg right:45% fit](../imgs/pod_container.png)
377+
![bg right:45% fit](./imgs/pod_container.png)
378378

379379
---
380380
<!-- footer: C2/4: Container-Container, Section B: **How does it work in reality?** -->
@@ -883,7 +883,7 @@ We have seen how containers and services within a cluster communicate.
883883

884884
## Multi-cloud
885885

886-
![h:600px](../imgs/multi-cloud.png)
886+
![h:600px](./imgs/multi-cloud.png)
887887

888888
---
889889

@@ -1086,7 +1086,7 @@ Go read line number 79-94 in `main.py`.
10861086
Understand and reproduce it.
10871087
Examine the generated conf files in `/tmp/knetsim/skupper` folder.
10881088

1089-
![bg right:50% fit](../imgs/schema.png)
1089+
![bg right:50% fit](./imgs/schema.png)
10901090

10911091
---
10921092

0 commit comments

Comments
 (0)