Kubernetes Communication between Frontend and Backend

后端 未结 4 530
鱼传尺愫
鱼传尺愫 2020-12-28 20:07

For local development I have a working minikube. There we have different services deployed. Now I want to connect the Frontend with the Backend.

The Frontend is a an

4条回答
  •  猫巷女王i
    2020-12-28 20:19

    I would sugest using Kubernetes own way of flexible tarffic ingestion with Ingress/IngressController. Havin ingress controller deployed in your cluster, you can easily create Ingress definition telling the controller to expose service under particular URL. All you need to do then is to point that name in DNS to the Ingress Controllers loadbalancer (in most cloud setups that will be with a CNAME to the LB fqdn).

    https://kubernetes.io/docs/concepts/services-networking/ingress/ https://github.com/kubernetes/ingress

提交回复
热议问题