A Lightweight PaaS Microservice Framework Based on Kubernetes
There are two main design patterns for microservices frameworks:client-side load balancing and server-side load balancing.This paper proposes a lightweight PaaS microservice framework based on Kubernetes.The framework adopts a server-side load balancing mode,designs a custom ServiceRoute object to describe service routing requirements,adds or removes service access points based on changes in the ServiceRoute object,implements service addressing based on DNS name resolution of service access points,and implements service routing and governance using LUA extended HAProxy.The framework adopts the standard HTTP protocol,with a simple and clear architecture,convenient component implementation,and non-invasive application.Test results show that the microservices framework works stably and performs well,providing a suitable solution for deploying microservices systems in restricted environments.