Simple ingress from host with microk8s?

后端 未结 4 2116
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 05:33

I would like to do two things with MicroK8s:

  1. Route the host machine (Ubuntu 18.04) ports 80/443 to Microk8s
  2. Use something like the simple ingress defi
4条回答
  •  自闭症患者
    2020-12-30 05:47

    When using a LoadBalancer (aka metallb) there is an important step missing in almost all docs:

    The ingress-controller needs to be exposed to the metallb LoadBalancer.

    kubectl expose deploy nginx-deployment --port 80 --type LoadBalancer
    

    This can be done by a yaml as well but its way easier to use the cli.

    After days of googling i finally came across this tutorial video that opened my eyes.

    https://www.youtube.com/watch?v=xYiYIjlAgHY

提交回复
热议问题