Steps and Commands for RTF Installation on self managed kubernetes

Published on
April 6, 2023
Author
MuleSoft Integration Team
Steps and Commands for RTF Installation on self managed kubernetes

Command Line Tools Installation:

Pre-requisites

  1. JDK 

OpenJDK 11 > https://adoptium.net/temurin/releases/?version=11

OpenJDK 8 > https://adoptium.net/temurin/releases/?version=8

2. Install Chocolatey on Windows 

a. Run a Powershell terminal as Administrator, then run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.

b. Install the Chocolatey Package Manager, a.k.a `choco`:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://community.chocolatey.org/install.ps1’))

  1. Install kubectl

choco install kubernetes-cli –version=1.24.10 –allow-downgrade -y

  1. Install rtfctl

curl -L https://anypoint.mulesoft.com/runtimefabric/api/download/rtfctl-windows/latest -o rtfctl.exe

  1. Install Azure CLI MSI

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli

Validate all tools are installed :

  • kubectl version –client –short 
  • rtfctl version –help
  • az

Azure KS Commands (Creating Kubernetes Cluster): 

Create a resource group in Azure.

  1. CREATE CLUSTER

az aks create –resource-group <<resourcegroup>> –name <<clustername>> –node-count 2 –generate-ssh-keys –kubernetes-version 1.24.9 –node-vm-size Standard_DS2_v2

  1. Check created clusters

az aks list

  1. GET CREDS (Get access credentials for a managed kubernetes cluster)

az aks get-credentials –resource-group <<resourcegroup>> –name <<clustername>>

  1. View Kubernetes config

kubectl config view

  1. Test connection to your cluster

kubectl get services

  1. GET NODES:

kubectl get nodes

Create Runtime Fabric Configuration in Runtime Manager

AND Get the Activation Code

RTF requires a separate license, so make sure you have a valid license

1.ACTIVATION CODE: 

<<activation code>>

2.Validate the activation code:

rtfctl validate <<activation code>>

Examine existing components in Kubernetes cluster before RTF installation

  1. Install the RTF:

rtfctl install <<activation code>>

  1. Check the RTF Status:

rtfctl status

Now your RTF status should be activated in Runtime Manager

Apply associated Environment (as per requirement)

Insert Mule License Key

1.Encode Mule license key

Powershell command to encode the license

$BASE64_ENCODED_LICENSE=[convert]::ToBase64String((Get-Content -path “license.lic” -Encoding byte))

2.set /p encoded_text=<mulel.txt (In directory where encoded license present)

3.$encoded_text = Get-Content -Path “mulel.txt” -Raw (Run this command in Powershell)

4.rtfctl apply mule-license %encoded_text%

Now If you go to “Inbound Traffic”, you will see a Warning.

We need to configure Ingress in order to enable inbound traffic to our RTF cluster.

Define a custom ingress configuration

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

CREATE INGRESS CONTROLLER:

kubectl apply -f ingress-resource.yaml

After configuring the ingress you will see the base endpoint as following:

Verify domains configured as base endpoints to runtime fabric

Deploy a Mule Application

  1. After deploying app to check the namespace of mule apps

kubectl get namespace

  1. To check services running on rtf

kubectl get services -n <<namespace>>

  1. To check pods running

kubectl get pods -n <<namespace>>

  1. GET EXTERNAL IPs:

kubectl get ingress -n <<namespace>>

16. APPLICATION CALL:

Recent Blogs

AI-Driven PDF Parsing in Salesforce
BlogDec 4, 2025

AI-Driven PDF Parsing in Salesforce

Introduction For the current digital ecosystem, data is an important aspect for decision-making. Yet, for many organizations, a significant portion of this valuable data remains locked away in unstructured formats. Organizations handle thousands of PDF documents daily — ranging from contracts and invoices to lab reports, quotations, and service agreements. Traditionally, extracting structured data from… Continue reading AI-Driven PDF Parsing in Salesforce

Read More
Blog
6 min read

AI-Driven PDF Parsing in Salesforce

Introduction For the current digital ecosystem, data is an important aspect for decision-making. Yet, for many organizations, a significant portion of this valuable data remains locked away in unstructured formats. Organizations handle thousands of PDF documents daily — ranging from contracts and invoices to lab reports, quotations, and service agreements. Traditionally, extracting structured data from… Continue reading AI-Driven PDF Parsing in Salesforce

Read More
Compression Namespace in Apex: A Powerful New Salesforce Feature
BlogNov 5, 2025

Compression Namespace in Apex: A Powerful New Salesforce Feature

Introduction Working with documents inside Salesforce has always challenged developers because of the platform’s multitenant constraints. Previously, packaging and sending files in a compact form required external services, like an AWS Lambda function, that retrieved files via API and then compressed them. With the introduction of the Compression Namespace and the powerful pre-defined Apex functions,… Continue reading Compression Namespace in Apex: A Powerful New Salesforce Feature

Read More
Blog
5 min read

Compression Namespace in Apex: A Powerful New Salesforce Feature

Introduction Working with documents inside Salesforce has always challenged developers because of the platform’s multitenant constraints. Previously, packaging and sending files in a compact form required external services, like an AWS Lambda function, that retrieved files via API and then compressed them. With the introduction of the Compression Namespace and the powerful pre-defined Apex functions,… Continue reading Compression Namespace in Apex: A Powerful New Salesforce Feature

Read More
Boost LWC Performance with Debouncing
BlogSep 18, 2025

Boost LWC Performance with Debouncing

Introduction Lightning Web Components (LWC) is a modern framework for building fast and dynamic user interfaces on the Salesforce platform. However, one common challenge in web development, including LWC, is efficiently handling user input, especially when dealing with rapid or repetitive events, such as typing in a search field. This is where debouncing becomes an… Continue reading Boost LWC Performance with Debouncing

Read More
Blog
7 min read

Boost LWC Performance with Debouncing

Introduction Lightning Web Components (LWC) is a modern framework for building fast and dynamic user interfaces on the Salesforce platform. However, one common challenge in web development, including LWC, is efficiently handling user input, especially when dealing with rapid or repetitive events, such as typing in a search field. This is where debouncing becomes an… Continue reading Boost LWC Performance with Debouncing

Read More
Salesforce Pricing Automation: Boost Efficiency And Accuracy with Apex Triggers
BlogSep 9, 2025

Salesforce Pricing Automation: Boost Efficiency And Accuracy with Apex Triggers

Introduction In order to succeed in today’s fast-paced business landscape, precision and speed define competitive advantage. For businesses, especially those managing complex product catalogs, ensuring accurate pricing on sales orders or custom lines can be a time-consuming and error-prone task. To overcome this challenge, Salesforce trigger handlers offer a powerful solution to automate the entire… Continue reading Salesforce Pricing Automation: Boost Efficiency And Accuracy with Apex Triggers

Read More
Blog
6 min read

Salesforce Pricing Automation: Boost Efficiency And Accuracy with Apex Triggers

Introduction In order to succeed in today’s fast-paced business landscape, precision and speed define competitive advantage. For businesses, especially those managing complex product catalogs, ensuring accurate pricing on sales orders or custom lines can be a time-consuming and error-prone task. To overcome this challenge, Salesforce trigger handlers offer a powerful solution to automate the entire… Continue reading Salesforce Pricing Automation: Boost Efficiency And Accuracy with Apex Triggers

Read More