Looking for K8s expert, help me debug a sample side container

Job ID: 36805498

Budget: $10 – $30 CAD

I have a sample application on Gitlab which I made for learning purposes.
It has a fron-end, backend.
Front end has most basic UI.
backend has one apim which I am doing rate limiting using Flask-Limiter.
Now everything works with docker compose.
When I try to use deployment and service. the api is working but the memcached storage which is a side container is not working.

The issue is with this line
memcached_uri = f'memcached://{host}:{port}'

So my question is how do I use this URI for two containers that are running in same pod.
I tried localhost since they are in the same pod.

I am looking for someone help me debug this on skype.
Related categories: Python Kubernetes