Deploy Traefik Hub API Management from the Oracle Marketplace
Traefik Hub API Management integrates with Oracle Cloud Infrastructure (OCI) to provide a cloud-native, Kubernetes-native solution for managing APIs with enterprise-grade security and comprehensive API lifecycle management.
In this guide, you'll learn how to deploy Traefik Hub API Management in your OCI Kubernetes Engine cluster using the Traefik Hub API Management stack available in the Oracle marketplace.
Prerequisites
- An Oracle Cloud account
- A Traefik Hub License token
- Access to your OCI Kubernetes Engine cluster (via kubeconfig or OCI Cloud Shell)
Access Your OCI Kubernetes Engine Cluster
Before proceeding with the deployment, you need to access your OCI Kubernetes Engine cluster. We recommend using your local machine for better control and easier port forwarding:
- Download kubeconfig:
- Navigate to your OCI Kubernetes Engine cluster in the OCI Console
- Select "Access Cluster"
- Select "Local Access"
- Follow the instructions to download and configure your kubeconfig

- Verify access:
kubectl get nodes
Deploy Traefik Hub API Management
Step 1: Launch the Stack
Navigate to the Traefik Hub API Management stack in the OCI marketplace and select Launch Stack.

Review the stack information and select Next to proceed.

Step 2: Configure the Deployment
In the Configure variables menu, you'll need to provide the following information:

API Management Configuration
-
Target Namespace
- Enter the namespace for the Traefik deployment (for example, "traefik")
- Select the "create target namespace" checkbox if the namespace doesn't exist
-
Create a New Traefik Hub API Management Gateway
- Visit Create New Gateway to create your new gateway. If you don't yet have a Traefik Hub account, please reach out to our sales team.
- Enter your gateway name
- Set the platform to "Kubernetes"
- Copy the provided gateway token

-
Configure the Stack
- Paste the gateway token into the Traefik Hub Token field
- The Traefik Hub version field is pre-filled with the latest version
- The Traefik Helm Chart values field includes the necessary API Management configuration:
ingressRoute:
dashboard:
enabled: true
Next, update the helm values to enable cross-namespace referencing by appending the following to the bottom of the field:
ingressRoute:
dashboard:
enabled: true
providers:
kubernetesCRD:
allowCrossNamespace: true
- The
apimanagementconfiguration enables the API Management features
Step 3: Configure OCI Kubernetes Engine Cluster
In the OKE configuration section, you can create a new basic OCI Kubernetes Engine cluster in a compartment of your choice if you don't already have one by selecting the Create Basic OKE cluster check box.

After selecting this option, you'll be required to enter a name for the OCI Kubernetes Engine cluster you want to create for the deployment.
In the Use existing OKE section, you can select your preferred cluster for the deployment from the dropdown menu.

Make sure to select the Allow insecure connection check box if the cluster is private.
After inputing all the required details based on your preference, select "Next" and review your configuration Settings.

- Ensure that the values in the Traefik Helm Chart values field are correctly formatted.
- Make sure the "Run apply" checkbox is checked.
Step 4: Deploy and Verify
- Review your configuration settings
- Select Create to start the deployment
Monitor the deployment progress in the Stacks job page:

Once complete, verify the deployment in the Traefik Hub dashboard:

Deploy and Test an API
Before proceeding with the API deployment, we need to obtain the IP address of your cluster's load balancer. This IP will be used to configure the IngressRoutes for both the API and the API Portal.
Run the following command to get your load balancer IP:
export EXTERNAL_IP=$(kubectl get svc -n traefik traefik \
-o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo "Use EXTERNAL_IP=${EXTERNAL_IP}"