Hi @M. Ebad Ullah Khan
As per the Support case , here is the resolution steps if this might also helps you.
Yes, it is possible to deploy a Redis instance on AKS (Azure Kubernetes Service). You can use a Kubernetes manifest file to define the Redis deployment and service. The manifest file includes the necessary configuration for the Redis instance, such as the image and resource limits. Here is an example of a Kubernetes manifest file that deploys a Redis instance on AKS:
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-back
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-back
template:
metadata:
labels:
app: azure-vote-back
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: azure-vote-back
image: mcr.microsoft.com/oss/bitnami/redis:6.0.8
env:
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
ports:
- containerPort: 6379
name: redis
apiVersion: v1
kind: Service
metadata:
name: azure-vote-back
spec:
ports:
- port: 6379
selector:
app: azure-vote-back
You can deploy the Redis instance using the kubectl apply
command and specifying the name of the YAML manifest file:
kubectl apply -f azure-vote.yaml
This will create the necessary deployments and services for the Redis instance on AKS.