2022-02-09 01:08:25 +00:00
|
|
|
# K8s setup with Nignx Ingress
|
|
|
|
|
|
|
|
```kubectl apply -f k8s/ingress```
|
|
|
|
|
|
|
|
Edit hosts file on host machine
|
|
|
|
|
|
|
|
Get ip of vm
|
|
|
|
|
|
|
|
```ip -o a | grep ens```
|
|
|
|
|
|
|
|
```sudo nano /etc/hosts```
|
|
|
|
|
|
|
|
```<ip> ingress.local```
|
|
|
|
|
|
|
|
http://ingress.local
|
|
|
|
|
|
|
|
http://ingress.local/v2
|
|
|
|
|
|
|
|
|
|
|
|
https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#server-side-https-enforcement-through-redirect
|
|
|
|
|
2022-02-08 10:55:21 +00:00
|
|
|
https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/
|
|
|
|
|
2022-02-09 00:44:11 +00:00
|
|
|
https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/
|
2022-02-08 10:55:21 +00:00
|
|
|
|