diff --git a/slides/common/prereqs.md b/slides/common/prereqs.md index c6fd655f..95e39afa 100644 --- a/slides/common/prereqs.md +++ b/slides/common/prereqs.md @@ -189,7 +189,8 @@ done ```bash if which kubectl; then - kubectl get all -o name | grep -v service/kubernetes | xargs -rn1 kubectl delete + kubectl get deploy,ds -o name | xargs -rn1 kubectl delete + kubectl get all -o name | grep -v service/kubernetes | xargs -rn1 kubectl delete --ignore-not-found=true fi ``` --> diff --git a/slides/kube/daemonset.md b/slides/kube/daemonset.md index 8234bad9..cbb194d4 100644 --- a/slides/kube/daemonset.md +++ b/slides/kube/daemonset.md @@ -95,10 +95,21 @@ Note: `--export` will remove "cluster-specific" information, i.e.: - Change `kind: Deployment` to `kind: DaemonSet` + + - Save, quit - Try to create our new resource: - ```bash + ``` kubectl apply -f rng.yml ``` @@ -420,11 +431,35 @@ Of course, option 2 offers more learning opportunities. Right? kubectl edit daemonset rng ``` + + - Update the service to add `isactive: "yes"` to its selector: ```bash kubectl edit service rng ``` + + ] --- diff --git a/slides/kube/dashboard.md b/slides/kube/dashboard.md index 65e1ed33..21cf314b 100644 --- a/slides/kube/dashboard.md +++ b/slides/kube/dashboard.md @@ -161,7 +161,7 @@ The dashboard will then ask you which authentication you want to use. .exercise[ - Edit the service: - ```bash + ``` kubectl edit service kubernetes-dashboard ``` @@ -192,6 +192,16 @@ The dashboard will then ask you which authentication you want to use. - Change `ClusterIP` to `NodePort`, save, and exit + + - Check the port that was assigned with `kubectl -n kube-system get services` - Connect to https://oneofournodes:3xxxx/ (yes, https) diff --git a/slides/kube/kubectlexpose.md b/slides/kube/kubectlexpose.md index 7da43220..c2f4054b 100644 --- a/slides/kube/kubectlexpose.md +++ b/slides/kube/kubectlexpose.md @@ -69,7 +69,10 @@ The `LoadBalancer` type is currently only available on AWS, Azure, and GCE. kubectl get pods -w ``` - + ] @@ -128,6 +131,8 @@ Note: please DO NOT call the service `search`. It would collide with the TLD. IP=$(kubectl get svc elastic -o go-template --template '{{ .spec.clusterIP }}') ``` + + - Send a few requests: ```bash curl http://$IP:9200/ diff --git a/slides/kube/kubectlrun.md b/slides/kube/kubectlrun.md index 1d5a919f..b082b866 100644 --- a/slides/kube/kubectlrun.md +++ b/slides/kube/kubectlrun.md @@ -198,10 +198,13 @@ We could! But the *deployment* would notice it right away, and scale back to the - Destroy a pod: - ```bash + ``` kubectl delete pod pingpong-xxxxxxxxxx-yyyyy ``` ] diff --git a/slides/kube/kubectlscale.md b/slides/kube/kubectlscale.md index f2cb6090..488a6448 100644 --- a/slides/kube/kubectlscale.md +++ b/slides/kube/kubectlscale.md @@ -10,7 +10,12 @@ kubectl get deployments -w ``` - + - Now, create more `worker` replicas: ```bash diff --git a/slides/kube/ourapponkube.md b/slides/kube/ourapponkube.md index e19227f5..8c89898d 100644 --- a/slides/kube/ourapponkube.md +++ b/slides/kube/ourapponkube.md @@ -114,6 +114,8 @@ In this part, we will: .exercise[ + + - View the repositories currently held in our registry: ```bash curl $REGISTRY/v2/_catalog @@ -275,6 +277,11 @@ class: extra-details .exercise[ + + - Look at some logs: ```bash kubectl logs deploy/rng @@ -328,9 +335,8 @@ class: extra-details (Give it about 10 seconds to recover) ] diff --git a/slides/kube/rollout.md b/slides/kube/rollout.md index fbd19604..5765338e 100644 --- a/slides/kube/rollout.md +++ b/slides/kube/rollout.md @@ -96,7 +96,10 @@ kubectl get deployments -w ``` - + - Update `worker` either with `kubectl edit`, or by running: ```bash @@ -150,6 +153,11 @@ That rollout should be pretty quick. What shows in the web UI? kubectl rollout status deploy worker ``` + + ] --