Deploying the application with GitOps

In this section, we’ll deploy the a Python microservice called AI Proxy Service that interacts with the model and does all the necessary image manipulations.

1. Creating a new AI Proxy application

Next, we’ll create an Argo CD application for the AI proxy. The AI proxy application deploys the AI proxy service and the required resources for the frontend and backend microservices to communicate.

Select + NEW APP from the Argo CD web interface, and fill in the following details:

Application Name

ai-proxy

Project Name

default

Sync Policy

Automatic

Self Heal

Enabled

Repository URL

{gitea_console_url}/{user}/rps-game-manifests.git

Revision

main

Path

helmai

Cluster URL

https://kubernetes.default.svc

Namespace

game-{user}

Helm Parameters: ai.model_host

yolo-rps-wksp-{user}.{openshift_cluster_ingress_domain}

Argo CD AI Proxy
Argo CD AI Proxy
Argo CD AI Proxy
Argo CD AI Proxy
Helm is a package manager for Kubernetes that allows you to define, install, and manage applications as packages called charts. A Helm chart contains the necessary templates and configuration files to deploy an application in a Kubernetes cluster.

Hit CREATE when finished. After creating the application, Argo CD will automatically synchronize the application and deploy the AI proxy service in the user namespace. You can view the status of the application, the resources deployed, and the synchronization status in the Argo CD web interface.

Argo CD AI Proxy App

You can also view this in the Topology view, where the AI proxy application is displayed with a Python icon, representing the AI proxy service.

Argo CD AI Proxy Topology

2. Next Steps

In this section, you learned how to deploy the AI proxy with Argo CD via Helm chart.

Now let’s deploy the game with Argo CD with another Helm chart.