n25/pages/ingress-test.md

53 lines
No EOL
833 B
Markdown

---
level: 2
---
# Ingress test
... with Vagrant
````md magic-move {lines: true}
```bash {1|2|3|4|5}
vagrant ssh workstation
cd /vagrant/certs/
bash secret.sh
bash copy_secret_to_default.sh
cd $HOME
```
```bash {1|2|3|4}
cd k8s/nginx-test
kubectl apply -f deployment.yaml
kubectl apply -f service.yaml
kubectl apply -f ingress.yaml
```
````
<div v-click>
Lets see an install of metallb and traefic ingress in a [Demo](http://ascii.headshed.dev/a/NwWLIm29tu2eU5Ah7H4GyU6Vg)
</div>
<div v-click>
The creation of a valid certificate is handled by [mkcert](https://github.com/FiloSottile/mkcert)
And our workstation already has [dnsmasq](https://thekelleys.org.uk/dnsmasq/doc.html) installed acting as a forwarding DNS and serving the address of our test domain `headshed.it` from earlier
</div>
<!--
TBC
....
-->