Make Redis slaves dicoverable - Kubernetes

0 votes

I have created a Redis slave deployment with the help of this: https://www.edureka.co/community/58787/redis-slave-deployment-kubernetes

Now I need to write the service.yaml for this. Asin, I need a way to expose the Redis slave deployment so that it's accessible by my application.

Help!

Oct 23 in Kubernetes by Hannah
• 16,420 points
17 views

1 answer to this question.

0 votes

Use something like this:

application/appl/redis-slave-service.yaml 

apiVersion: v1
kind: Service
metadata:
  name: redis-slave
  labels:
    app: redis
    role: slave
    tier: backend
spec:
  ports:
  - port: port-number
  selector:
    app: redis
    role: slave
    tier: backend
answered Oct 23 by Eric

Related Questions In Kubernetes

0 votes
1 answer

Redis slave deployment - Kubernetes

You can something like this, Make the ...READ MORE

answered Oct 23 in Kubernetes by Eric
38 views
+5 votes
2 answers

Redirecting host to service path in kubernetes

What you are trying to do is ...READ MORE

answered Mar 27, 2018 in Kubernetes by DragonLord999
• 8,380 points
113 views
0 votes
1 answer

unable to start Kubernetes due to so many open files in system

You can try the following steps: You can ...READ MORE

answered May 1, 2018 in Kubernetes by shubham
• 6,890 points
249 views
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
395 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