Skip to content

Instantly share code, notes, and snippets.

@pedes
Last active March 12, 2026 14:19
Show Gist options
  • Select an option

  • Save pedes/465141d75508eb2f3dd167ce84e679bd to your computer and use it in GitHub Desktop.

Select an option

Save pedes/465141d75508eb2f3dd167ce84e679bd to your computer and use it in GitHub Desktop.

Kubernetes Commands Cheat Sheet (Runtime Fabric MuleSoft version)

This unofficial gist contains a list of commands typically ran for Kubernetes and Runtime Fabric MuleSoft.

Tools | Prerequisites

1. Install & Configure Java 8

2. Install & Configure Maven

At the moment of writing this guide, the current maven version 3.9.0 it's not supported. (downgrade previous version)

3. Install AWS IAM Authenticator & AWS CLI (BOTH)

Both CLIs are required.

4. Install KUBECTL

Foundational Commands | Getting Started

  • Check the AWS User

aws --version (good checking the version of AWS CLI and AWS IAM Authenticator)

aws-iam-authenticator version

aws sts get-caller-identity

  • Check the connectivity with the Kubernetes Cluster

kubectl version --client (There's a know bug from the kubectl if version is higher than 1.23.14)

kubectl cluster-info

kubectl get --raw='/healthz?verbose'

rtfctl validate VALIDATIONDATA

rtfctl install VALIDATIONDATA

Verify the installation is correct by running

kubectl get pods -n rtf

kubectl get services

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.100.0.1 443/TCP 47m
  • Install License

rtfctl apply mule-license '2+W35iUhD9mO1v8Y2x5Pyn+Sd0tZMzUhblmMfPYL9zaMgZquTwfP7RtwMBBiJnIja2qJoaEPMIXERia3OPolat94p0nE76wOmzmkwWZqlRhs6raZEfD8D4RsXGqUr8CZ9zWFdMkxmt2hYNRX7eEc9vOKgmxv0TvQVZF2AeUMqCaGX0lpmQWSXsCHpnuyj9JURTHn3d9Eyv0dytL5yjWh8zAoEBPqAe6WzBqFfy8UfHgTYSfQAqI/MH826XbPTwogFIOHeMzk/YBnt1YRkIiKq9EA0A/lGxUa8/UYZ8HvEEIbwoZDf1+euveA3wO5QzdQqKLMm2mED1BlkR8m+7ORy6iRURiAH/Y0RYE2izZZgHMnNJol8zxWM2+Ocq+iMuzbsbBgUz7WIUmQYgBCfRte51Cqykn5YgSuUBjL34JMxw7p2hRXzWACcUlv0mPD3oAlLUkRq8E5AY+5C3wl0UjwhDUrAkRInEjNpBcdNnPIvyCbeqM2GxMHgJFRAKdVmmGq9IER+UU3tekrZ4VbNyR8fg7+Zm5cL/E77sTzWNBzxAbbgdaMOztHh1hDhuXORpGXq9Ra47IHPPOv5UuqHsEot3BDAArwKNZWJU8lTbNpol8vqLesKU6yqwabCQBf24+M6TQbJSkRFR2Y2m4qdR6HLgSf2/NCvZm0uwFhO/B5FOa8Gd0Zbppig6ufiegi8hr/R2/cMJz6Bd29NKdwpS8UfBMxCL1FQGwnBae2bouhk0K9h/GNxEhr5iHxfkyCZi9B59SdtKjyJJgTk+g9ttmLIQi6iM7C/MI/SPxrtRuioh2stO9cqd1Vml0Z9Ytke8xIXMNc9PuV/NLrO8Ezy5EGtw=='

Cluster Management Commands (Change the name of the pod by the respective one)

Get all running pods in ALL namespaces

kubectl get pods -A --field-selector=status.phase=Running

Installation logs

kubectl logs rtf-install-job-ljpdz -n rtf > install.log

Get Events (audit your cluster)

kubectl get events -A > events.log

  • Get extra information about your pods

kubectl get pods -A -o yaml

kubectl get pods -A -o json

kubectl get pods -A -o wide

Restart the RTF Agent Pod

kubectl delete pods -n rtf -lapp=agent

Enable Log4J Custom Appenders from Mule Apps

kubectl -nrtf patch secret custom-properties -p '{"data":{"CUSTOM_LOG4J_ENABLED":"dHJ1ZQ=="}}'

See the secret content in plain text

kubectl get secret custom-properties -n rtf -o json | jq -r '.data | map_values(@base64d)'

Deployment to RTF

More details at Deploy RTF-app via API

Monitoring and vCore/Cores/vCPU Consumption

Change the namespace value by the one where the mule apps are running.

JSON Output with the CPU Limits assigned to each app container

kubectl get pods -n ed890e53-f35f-4ff8-9c96-91f95dcc82e4 -o json | jq '.items[] | {name: .metadata.name, containers: [.spec.containers[] | select(.name == "app") | {name: .name, cpuLimits: .resources.limits.cpu}]}'

References

Kubernetes Plugins and Libraries

@pedes
Copy link
Copy Markdown
Author

pedes commented Feb 26, 2024

kubectl logs mule-info-86b8f77d95-mv6tl -n 82bcfacc-14f6-437f-abe3-069d0a25bee2 -c app
Check license applied to mule container

@pedes
Copy link
Copy Markdown
Author

pedes commented Apr 4, 2025

kubectl -n rtf patch secret custom-properties -p "{\"data\":{\"CUSTOM_LOG4J_ENABLED\":\"dHJ1ZQ==\"}}"�

kubectl get secret custom-properties -n rtf -o json | jq -r ".data | map_values(@base64d)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment