> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/public-finance/setup/installation/ifix-service-setup.md). Agents can also search and read this documentation through its [MCP server](https://docs.digit.org/~gitbook/mcp).

# iFIX Service Setup

Infrastructure Setup

## Introduction

iFIX is a microservices-based distributed cloud-native application. The microservices streamline processes to meet outcomes at scale and speed. Each of the microservices is dockerized and deployed on Kubernetes infrastructure. &#x20;

## Pre-reads <a href="#pre-read" id="pre-read"></a>

It is essential to understand some of the key concepts, benefits and best practices of the Kubernetes platform before we understand the deployment of the iFIX. &#x20;

* Know the basics of Kubernetes: <https://www.youtube.com/watch?v=PH-2FfFD2PU&t=3s>​
* Know the [basics of kubectl](https://www.tutorialspoint.com/kubernetes/kubernetes_kubectl_commands.htm) commands
* Know Kubernetes manifests: <https://www.youtube.com/watch?v=ohSUtEfDefc>​
* Know how to manage environment values and secrets of any service deployed in Kubernetes <https://www.youtube.com/watch?v=OW244LxB4oI>​
* Know how to port forward to a pod running inside the k8s cluster and work locally <https://www.youtube.com/watch?v=TT3nd5n5Yus>​
* Know sops to secure your keys/creds: <https://www.youtube.com/watch?v=DWzJ87KbwxA>​

## 1. Choose Installation Type <a href="#v-1-choose-the-cloud-1" id="v-1-choose-the-cloud-1"></a>

Choose the target infra type and follow the instructions to set up a Kubernetes cluster before moving on to the deployment.

{% content-ref url="/pages/-MjSaFj5cc\_r1qRBG6fx" %}
[Quickstart/Local Setup](https://docs.digit.org/public-finance/setup/installation/infra-setup/quickstart.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MjSZk6W1k0R8oM\_C3-J" %}
[On AWS](https://docs.digit.org/public-finance/setup/installation/infra-setup/on-aws.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MiKcR1Xw86ScVsYTEcL" %}
[On Azure](https://docs.digit.org/public-finance/setup/installation/infra-setup/on-azure.md)
{% endcontent-ref %}

## 2. Deployment <a href="#v-1-choose-the-cloud" id="v-1-choose-the-cloud"></a>

The deployment process ensures scalability, flexibility, and efficiency through:

1. Defining deployment configurations as Helm charts.
2. Storing configurations in Git for version control.
3. Automating deployment pipelines for faster iterations.

With these practices, iFIX can be deployed and managed efficiently on Kubernetes while overcoming challenges like resource optimization, scaling, and infrastructure management.

Before starting the deployment, it’s essential to understand the process from source code to a production-ready environment. Kubernetes provides an efficient way to deploy containers in cloud infrastructure. However, managing Kubernetes at scale can be complex. Challenges include:

* Selecting the right instance type and size.
* Scaling the infrastructure up or down.
* Ensuring containers are properly scheduled and run on optimal instances.
* Addressing cost and resource optimization.

To simplify deployment, manage the configuration as code. Each service’s deployment configuration is defined using **Helm charts** and deployed to the Kubernetes cluster. Managing deployment as code provides benefits like version control, change tracking, and branching.

#### 1. iFIX Installation

{% content-ref url="/pages/-MjC8Dm5mC8qB09oRkzj" %}
[Deploy Services](https://docs.digit.org/public-finance/setup/installation/installation.md)
{% endcontent-ref %}

#### 2. iFIX-adapter Installation

{% content-ref url="/pages/-MjTF4XYqAXVMvfnEG5\_" %}
[Installation](https://docs.digit.org/public-finance/setup/integration/ifix-adapter/installation.md)
{% endcontent-ref %}

#### 3. iFIX Ref Dashboard Installation

{% content-ref url="/pages/-MjTHZrMiyMraqGgVOC0" %}
[Installation](https://docs.digit.org/public-finance/setup/integration/ifix-dashboard/installation.md)
{% endcontent-ref %}

## 3. Destroy the Setup <a href="#id-5-destroy-the-cluster" id="id-5-destroy-the-cluster"></a>

Clean up the cluster Setup using the command below, if required. This deletes the entire cluster and other cloud resources that were provisioned for the iFIX Infra Setup.

```
cd iFix-DevOps/infra-as-code/terraform/my-iFix-eksterraformdestroy​
```

## Conclusion <a href="#conclusion" id="conclusion"></a>

All done, the infra on local, cloud, and deployment of iFIX into the Kubernetes cluster is completed successfully.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digit.org/public-finance/setup/installation/ifix-service-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
