This document illustrates the procedure and steps to deploy WFM-core Components on Kubernetes.
Before you begin, verify
-
Installed Kubernetes. If not, see Deployment Planning
-
Have already setup storage. If not yet, see Storage Solution - Getting Started
Prepare for WFM-Reports Deployments
Step 1: Clone the WFM-Reports repository
git clone -b <branch Name> https://gitlab.expertflow.com/wfm/wfm-core.git
cd wfm-core/
Step 2: Create Namespaces
-
Create a namespace
wfmfor all WFM components.
kubectl create namespace wfm
Step 3: Apply Image Pull secret
-
Run the following commands for applying ImagePullSecrets of WFM images.
kubectl apply -f wfm-core/registryCredits/ef-imagePullSecret-wfm.yaml
Step 4: Update FQDN
Wfm-core Component should be accessible by a fully qualified domain name. Assign the FQDN.
Replace <FQDN> with your FQDN for wfm-core and run this command.
sed -i 's/devops[0-9]*.ef.com/<FQDN>/g' wfm-core/ConfigMaps/* wfm-core/Ingresses/nginx/* wfm-core/Ingresses/traefik/*
Step 5: Deploy WFM-Core Component
-
Change the directory
cd wfm-core/ -
Apply ConfigMaps
kubectl apply -f ConfigMaps/ef-wfm-core-configmap.yaml -
Create services for wfm-core
kubectl apply -f Services/ef-wfm-core-service.yaml -
Apply the Deployment manifest
kubectl apply -f Deployments/ef-wfm-core-deployment.yaml -
Before proceeding to the the next steps, wait for all the solution components to be up and ready.
kubectl get pods -n wfm
Step 6 :Setup Ingress Routes
For RKE2-based Ingresses using Ingress-Nginx Controller
kubectl apply -f Ingresses/nginx/ef-wfm-core-Ingress.yaml