Simple ingress from host with microk8s?

后端 未结 4 2127
被撕碎了的回忆
被撕碎了的回忆 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:49

    If you need expose a service publicly with HTTPS and authentication, that may become rather involved, as you need configure a) ingress, b) TLS certificate service - i.e. using Lets Encrypt, c) authentication proxy, d) implement user authorization in your app.

    If your K8S cluster is running on a server with no public IP, that brings an additional complication, as you need penetrate NAT.

    https://github.com/gwrun/tutorials/tree/main/k8s/pod demonstrates how to securely expose k8s service running on microk8s cluster with no public IP as publicly accessible HTTPS with OAuth authentication and authorization, using Kubernetes Dashboard as a sample service.

提交回复
热议问题