+

Installing Flex Gateway

You can install Flex Gateway as a Linux service, in a Docker container, or as a Kubernetes Ingress controller.

  • If you want to run your Flex Gateway inside a virtual machine (VM), install it as a Linux service.

  • If you want try the product quickly or demonstrate some of the product’s capabilities in a non-production scenario, install it in a Docker container.

  • If you want use Flex Gateway as a load balancer at the edge of a Kubernetes cluster, install it as a Kubernetes Ingress controller.

  • If you want use Flex Gateway as a load balancer at the edge of an OpenShift cluster, install it as an OpenShift Ingress controller.

20%

25%

20%

20%

Install as a Linux Service

You can install Flex Gateway as a service in one of the following Linux environments:

20%

17%

22%

23%

20%

Ubuntu

Before You Begin

Before getting started, ensure that you have installed the following:

Run Installation Commands

To install Flex Gateway as a Ubuntu service execute the command block which does the following actions:

  • Retrieves the public package keys and adds the package repository

  • Updates the package list

  • Updates apt-get

  • Installs the Flex Gateway package

curl -XGET https://flex-packages.anypoint.mulesoft.com/ubuntu/pubkey.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://flex-packages.anypoint.mulesoft.com/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mulesoft.list
sudo apt update
sudo apt install -y flex-gateway

Now that you have installed Flex Gateway, you need to register it in either Connected or Local Mode.

See Getting Started with Flex Gateway for more information about the difference between Connected and Local Mode.

Debian

Before You Begin

Before getting started, ensure that you have installed the following:

Run Installation Commands

To install Flex Gateway as a Debian service execute the command block which does the following actions:

  • Retrieves the public package keys and adds the package repository

  • Updates the package list

  • Updates apt-get

  • Installs the Flex Gateway package

curl -XGET https://flex-packages.anypoint.mulesoft.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://flex-packages.anypoint.mulesoft.com/debian $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mulesoft.list
sudo apt update
sudo apt install -y flex-gateway

Now that you have installed Flex Gateway, you need to register it in either Connected or Local Mode.

See Getting Started with Flex Gateway for more information about the difference between Connected and Local Mode.

Amazon Linux

Run Installation Commands

To install Flex Gateway as an Amazon Linux service execute the command block which does the following actions:

  • Adds the Flex Gateway package repository with a reference to its public key

  • Installs the Flex Gateway package

sudo tee /etc/yum.repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/amazonlinux/$releasever/main
gpgcheck=1
gpgkey=https://flex-packages.anypoint.mulesoft.com/amazonlinux/pubkey.gpg
repo_gpgcheck=1
enabled=1
EOF

sudo yum install -y flex-gateway

Now that you have installed Flex Gateway, you need to register it in either Connected or Local Mode.

See Getting Started with Flex Gateway for more information about the difference between Connected and Local Mode.

Red Hat Enterprise Linux

Run Installation Commands

To install Flex Gateway as a Red Hat Enterprise Linux service execute the command block which does the following actions:

  • Adds the Flex Gateway package repository with a reference to its public key

  • Installs the Flex Gateway package

sudo tee /etc/yum.repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/rhel/$releasever/main
gpgcheck=1
gpgkey=https://flex-packages.anypoint.mulesoft.com/rhel/pubkey.gpg
repo_gpgcheck=1
enabled=1
EOF

sudo yum install -y flex-gateway

Now that you have installed Flex Gateway, you need to register it in either Connected or Local Mode.

See Getting Started with Flex Gateway for more information about the difference between Connected and Local Mode.

CentOS

Before You Begin

Run Installation Commands

To install Flex Gateway as an CentOS service execute the command block which does the following actions:

  • Adds the Flex Gateway package repository with a reference to its public key

  • Installs the Flex Gateway package

sudo tee /etc/yum.repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/centos/$releasever/main
gpgcheck=1
gpgkey=https://flex-packages.anypoint.mulesoft.com/centos/pubkey.gpg
repo_gpgcheck=1
enabled=1
EOF

sudo yum install -y flex-gateway

Now that you have installed Flex Gateway, you need to register it in either Connected or Local Mode.

See Getting Started with Flex Gateway for more information about the difference between Connected and Local Mode.

Install in a Docker Container

To install Flex Gateway in a Docker container:

  1. Download the Flex Gateway Docker image:

    docker pull mulesoft/flex-gateway:latest
  2. Verify the installation was successful:

    docker images

    You should see the Flex Gateway container image in the resulting list.

    REPOSITORY                   TAG
    mulesoft/flex-gateway        latest

Now that you have installed Flex Gateway, you need to register it in either Connected or Local Mode.

See Getting Started with Flex Gateway for more information about the difference between Connected and Local Mode.

Install as a Kubernetes Ingress Controller

To install Flex Gateway as a Kubernetes Ingress controller download the Flex Gateway container image:

docker pull mulesoft/flex-gateway:latest

Now that you have installed Flex Gateway, you need to register it in either Connected or Local Mode.

See Getting Started with Flex Gateway for more information about the difference between Connected and Local Mode.

Install as an OpenShift Ingress Controller

docker pull mulesoft/flex-gateway:latest

Now that you have installed Flex Gateway, you need to register it in either Connected or Local Mode.

See Getting Started with Flex Gateway for more information about the difference between Connected and Local Mode.

Was this article helpful? Thanks for your feedback!
View on GitHub