Add self-paced kube manifest + small fixes in kube content

This commit is contained in:
Jérôme Petazzoni
2017-11-12 17:37:40 -08:00
parent 8279a3bce9
commit cd18a87b8c
4 changed files with 59 additions and 11 deletions

View File

@@ -59,7 +59,24 @@ class: extra-details
## Example in `worker/worker.py`
![Service discovery](images/service-discovery.png)
```python
redis = Redis("`redis`")
def get_random_bytes():
r = requests.get("http://`rng`/32")
return r.content
def hash_bytes(data):
r = requests.post("http://`hasher`/",
data=data,
headers={"Content-Type": "application/octet-stream"})
```
(Full source code available [here](
https://github.com/jpetazzo/container.training/blob/8279a3bce9398f7c1a53bdd95187c53eda4e6435/dockercoins/worker/worker.py#L17
))
---

View File

@@ -7,7 +7,6 @@ chat: "[Slack](https://dockercommunity.slack.com/messages/C7GKACWDV)"
exclude:
- self-paced
- snap
chapters:
- common/title.md

33
slides/kube-selfpaced.yml Normal file
View File

@@ -0,0 +1,33 @@
title: |
Deploying and Scaling Microservices
with Docker and Kubernetes
chat: "[Slack](https://dockercommunity.slack.com/messages/C7GKACWDV)"
#chat: "[Gitter](https://gitter.im/jpetazzo/workshop-yyyymmdd-city)"
exclude:
- in-person
chapters:
- common/title.md
#- logistics.md
- common/intro.md
- common/toc.md
- - common/prereqs.md
- kube/versions-k8s.md
- common/sampleapp.md
- - kube/concepts-k8s.md
- common/declarative.md
- kube/declarative.md
- kube/kubenet.md
- kube/kubectlget.md
- kube/setup-k8s.md
- kube/kubectlrun.md
- - kube/kubectlexpose.md
- kube/ourapponkube.md
- kube/dashboard.md
- - kube/kubectlscale.md
- kube/daemonset.md
- kube/rollout.md
- kube/whatsnext.md
- common/thankyou.md

View File

@@ -236,14 +236,13 @@ Unfortunately, `--follow` cannot (yet) be used to stream the logs from multiple
class: title
.small[
Meanwhile, at the Google NOC ...
.small[
Why the hell
Meanwhile,
<br/>
are we getting 1000 packets per second
at the Google NOC ...
<br/>
of ICMP ECHO traffic from EC2 ?!?
]
]
<br/>
.small[“Why the hell]
<br/>
.small[are we getting 1000 packets per second]
<br/>
.small[of ICMP ECHO traffic from EC2 ?!?”]