Skip to content

Expose the option for Kuadrant to be installed in HA mode #798

@maleck13

Description

@maleck13

What

When you install Kuadrant, it defaults to a single instance of Authorino and Limitador. In order to be resilient to failure, some installations may want multiple instances of Authorino and Limitador deployed as these components are in the critical path for requests. As Authorino and Limitador support having multiple instances deployed on the same cluster, we should expose options for this deployment topology to be used via Kuadrant

At a high level the key things to expose would be the number of replicas of each that you want and how you want them distributed.
Kubernetes supports distributing instances of a pod via topology constraints
https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#topology-spread-constraint-examples

use cases:

Support a multi-az k8s cluster where I want to have a gateway instance per AZ that routes to an Authorino and Limitador in the same AZ I want to spread out instances of Authorino and Limitador across AZs rather than allowing them to be potentially scheduled to the same AZ or even the same node. Allow me to have more than one instance of these components per AZ / per cluster for redundancy and to improve resiliency against node failure and AZ failure.

One concept for Kuadrant CRD:

deployment:
   limitador | ratelimiting:
     replicas: 3
     topologyKey: zone
   authorino | auth:
     replicas: 3
     topologyKey: zone

We may also want to consider a simpler level of configuration:

deployment:
   mode: HA
   topologyKey: zone | node

In Authorino and Limitador we would need to add (just an example):

topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: zone
    whenUnsatisfiable: ScheduleAnyway
    labelSelector:
      matchLabels:
        app: limitador

Done

  • Decide how to expose this deployment topology via the Kuadrant CR
  • Understand any required changes to the Authorino and Limitador operators
  • Implement any needed changes to the Authorino and Limitador operators and CRDs
  • Implement the chosen Kuadrant CR and Kuadrant Operator changes
  • Add e2e test that deploys Kuadrant in this shape and tests it is as expected
  • Document the options for this deployment type in the Kuadrant CR
  • Document our recommended topologies in a multi-az and single az setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFC requiredRequires an RFC to back it up

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions