---
title: "Multiple Discrete Instances with App-Only Image - no Load Balancer"
canonical: "https://wiki.yellowfinbi.com/space/yfcurrent/2195764/Multiple%20Discrete%20Instances%20with%20App-Only%20Image%20-%20no%20Load%20Balancer"
format: markdown
---
> Macro (anchor)



## Overview

 In our steps for setting up a multiple discrete instance of Yellowfin, we’ll create two Yellowfin instances  using the **LoadBalancer **service type in Kubernetes, so that each Yellowfin instance can be accessed on port 8080 of the provisioned load balancer.  

The **Production **instance of Yellowfin will be allocated 6GB of RAM, and the **Development **instance will be allocated 4GB of RAM. In a Kubernetes environment where a load balancer cannot be provisioned during the deployment (eg, a basic on-premises environment), the services specification can be modified to switch the ServiceType to NodePort. 

Before deploying your instances with these defaults, make sure you have already created a repository database and synced it with the same version of Yellowfin that will be used in the Yellowfin container. To do this, download the full application installer for Yellowfin, and [install it on your workstation](https://yellowfin.atlassian.net/wiki/spaces/yfcurrent/pages/2202562). This will create a Yellowfin repo DB as well as an instance of Yellowfin in a folder which can be deleted after configuring the containers.   

For a list of supported database types, see the database information on [Install And Deploy Yellowfin](https://yellowfin.atlassian.net/wiki/spaces/yfcurrent/pages/2203838).

In the steps below, we’ll show you how to deploy two discrete instances of Yellowfin. 

1. Install the full application installer version of Yellowfin on your workstation (this is temporary to ensure the repo DB is available for the containers to use)
2. Copy the web.xml file from this installation and save it as a backup to your preferred location (this acts as a reference for the Yellowfin credentials required to connect to your Yellowfin repo DB)
3. Ensure Kubernetes is running
4. Copy the following text and paste it into your preferred text editor:
5. Read through the above text and replace the database connection settings with your own configuration details (these are located in the web.xml file of the Yellowfin installation)
6. Save the text to a YAML file called **yellowfin-multiple-instances.yml**
7. Run the following command in a terminal to deploy Yellowfin:  
`Kubectl apply –f yellowfin-multiple-instances.yml `
8. Start Yellowfin by typing your host URLon port 8080
9. Ensure that Yellowfin is running from your containers and that you can login (this confirms that your login credentials are correct, so you can safely delete the workstation instance of Yellowfin)
10. Delete the workstation instance of Yellowfin by removing the folder

## Section navigation

### Current topic - Install in a Container

The page is part of the [Install in a Container](https://yellowfin.atlassian.net/wiki/spaces/yfcurrent/pages/2196024) topic contains the following pages, split by Docker and Kubernetes:

This page is part of the [Install And Deploy Yellowfin](https://yellowfin.atlassian.net/wiki/spaces/yfcurrent/pages/2203838) section of the wiki, which has these topics: