Skip to content

sunary/aku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aku

API gateway that aggregates multiple backend services behind a single endpoint. You define which APIs to expose using Kubernetes custom resources (declarative configuration), following a domain-oriented microservice style.

Install

  1. Install the Aku CRD

    kubectl apply -f artifacts/crd-aku.yaml
  2. Create an Aku resource

    kubectl apply -f artifacts/aku.yaml

    Example aku.yaml:

    apiVersion: configuration.aku.vn/v1alpha1
    kind: Aku
    metadata:
      name: aku
    spec:
      deploymentName: aku
      replicas: 1
      routeMap:
        - name: open-prefix-public-path
          overridePath: /api/v1/your-service/public
          upstream_path: /public
        - name: open-prefix/user-path
          overridePath: /api/v1/your-service/user
          upstream_path: /user
      methodMap:
        - name: open-only-public-method
          proto_service: pb.ProtoService
          allow:
            - PublicMethod
        - name: open-all-method-except-private
          proto_service: pb.OtherProtoService
          disallow:
            - PrivateMethod
  3. Deploy the aku gateway and assign it a ClusterRole so it can watch Aku resources.

About

grpc/http API gateway

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors