Application communication with the Redis master

0 votes
I hadployes a redis master on a Kubernetes cluster. This Redis master has a few entries that I need to query. How do I make my application communicate with this master?
Oct 23 in Kubernetes by Hannah
• 16,420 points
14 views

1 answer to this question.

0 votes

Have a look at this deployment: https://www.edureka.co/community/58783/deployment-controller-single-replica-redis-master-kubernetes

You can the following service.yml for exposing that deployment:

application/appl/redis-master-service.yaml 

apiVersion: v1
kind: Service
metadata:
  name: redis-master
  labels:
    app: redis
    role: master
    tier: backend
spec:
  ports:
  - port: 6379
    targetPort: 6379
  selector:
    app: redis
    role: master
    tier: backen
answered Oct 23 by Eric

Related Questions In Kubernetes

0 votes
1 answer

What all components is the Master server in Kubernetes made up of?

Kubernetes is a combination of multiple parts ...READ MORE

answered Jul 11 in Kubernetes by Sirajul
• 37,930 points
107 views
0 votes
1 answer

how can i access two containers that are inside a pod from the browser with IP address?

Just do port forward. kubectl port-forward [nginx-pod-name] 80:80 kubectl ...READ MORE

answered Jul 18 in Kubernetes by Sirajul
• 37,930 points
52 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
3,033 views
+3 votes
1 answer
0 votes
1 answer

Deploy PHP application with Redis - Kubernetes

Hi, @Hannah, Follow these steps: 1. Create a ...READ MORE

answered Oct 23 in Kubernetes by Eric
24 views