mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-19 04:49:19 +00:00
Last tweaks so that autopilot passes
This commit is contained in:
@@ -191,6 +191,7 @@ done
|
||||
if which kubectl; then
|
||||
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
|
||||
kubectl -n kube-system get deploy,svc -o name | grep -v dns | xargs -rn1 kubectl -n kube-system delete
|
||||
fi
|
||||
```
|
||||
-->
|
||||
|
||||
@@ -8,8 +8,9 @@
|
||||
|
||||
<!--
|
||||
```bash
|
||||
cd ~
|
||||
if [ -d container.training ]; then
|
||||
mv container.training container.training.$$
|
||||
mv container.training container.training.$RANDOM
|
||||
fi
|
||||
```
|
||||
-->
|
||||
|
||||
@@ -131,7 +131,10 @@ 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 }}')
|
||||
```
|
||||
|
||||
<!-- ```hide kubectl wait deploy elastic --for condition=available``` -->
|
||||
<!--
|
||||
```hide kubectl wait deploy elastic --for condition=available```
|
||||
```hide sleep 5``` (give some time for elasticsearch to start... hopefully this is enough!)
|
||||
-->
|
||||
|
||||
- Send a few requests:
|
||||
```bash
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
.exercise[
|
||||
|
||||
- Run an open proxy to the Kubernetes API:
|
||||
```bash
|
||||
```
|
||||
kubectl proxy --port=8888 --address=0.0.0.0 --accept-hosts=.*
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user