Skip to content
Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Kubernetes Setup

On this page you can find tutorial how to deploy DecisionRules into kubernetes

How to Deploy DecisionRules on Kubernetes

1. Create a namespace for DecisionRules

Template

namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
  name: decisionrules
  labels:
    name: decisionrules

Activate

kubectl apply -f namespace.yaml

2. Install Ingress to kubernetes

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.14.3/deploy/static/provider/cloud/deploy.yaml

3. Install Cert-Manager

kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.19.3/cert-manager.yaml

4. Configure Cert-Manager

Template

Activate

5. Create services and configure ingress

In this template, you must specify your custom hostname. Be sure to change the same hostname in the TLS hosts section.

Template

Activate

6. Getting Ingress IP address for setting domain

Command

Example of Response

In the response, you can find column ADDRESS where you can find the IP Address of Ingress. This IP Address you can use to specify your custom domain as A record of DNS.

7. Create deployment service

The template sizes the server for the AERO (v2) solver or mixed V1/V2 traffic: 4 vCPU and 4 GiB per replica (cpu: 4000m and memory: 4Gi for both requests and limits) and autoscaling between 2 and 5 replicas. AERO uses several CPUs within one process, so it runs best on fewer, larger replicas.

If you use only the classic GAIA (v1) solver, set the server's requests to cpu: 1000m and memory: 1Gi, its limits to cpu: 2000m and memory: 2Gi, and the autoscaler's maxReplicas to 10. See server sizing for scaling and resource reserve.

In this template, you must fill Environmental variables and change the URL to the Ingress hostname which you specify in the previous step. The place is markup with comments.

Template

Activate

Last updated

Was this helpful?