Kubernetes Setup with Business Intelligence
Here you can find the templates for the deployment of DecisionRules with Business Intelligence on Kubernetes
In general, you can follow the general Kubernetes setup described on the previous page. You will just need the two main templates slightly adjusted. In particular, during the setup use the following templates.
First, the template for services and ingress will now look like this.
apiVersion: v1
kind: Service
metadata:
name: decisionrules-client-service
namespace: decisionrules
spec:
selector:
app: decisionrules-client
ports:
- port: 80
---
apiVersion: v1
kind: Service
metadata:
name: decisionrules-server-service
namespace: decisionrules
spec:
selector:
app: decisionrules-server
ports:
- port: 8080
---
apiVersion: v1
kind: Service
metadata:
name: decisionrules-bi-service
namespace: decisionrules
spec:
selector:
app: decisionrules-bi
ports:
- port: 8082
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: decisionrules-ingress
namespace: decisionrules
annotations:
nginx.ingress.kubernetes.io/rewrite-target: "/"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
ingressClassName: nginx
tls:
- hosts:
- yourdomain.local # must be changed
- api.yourdomain.local # must be changed
secretName: echo-tls
rules:
- host: yourdomain.local # must be changed
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: decisionrules-client-service
port:
number: 80
- host: api.yourdomain.local # must be changed
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: decisionrules-server-service
port:
number: 8080
- host: bi.yourdomain.local # must be changed
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: decisionrules-bi-service
port:
number: 8082Second, the deployment template.
Remember to enter your own custom ULRs consistently in bot the above templates. Also, in the deployment template, you will need to fill in valid values of the environment variables for both the server and the business intelligence container. All the places in the templates that need your attention are marked by a comment.
Upon following the instructions on the previous page and using these two templates instead of the respective templates provided therein, you should be able to successfully deploy DecisionRules with the Business Intelligence container on Kubernetes.
Last updated