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, 2019 in Kubernetes by Hannah
• 18,060 points
79 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, 2019 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, 2019 in Kubernetes by Eric
229 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,420 points
271 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,910 points
466 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
777 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, 2019 in Others by anonymous
7,113 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,890 points

reshown Apr 12, 2019 by Kalgi 2,096 views
0 votes
1 answer

Deploy PHP application with Redis - Kubernetes

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

answered Oct 23, 2019 in Kubernetes by Eric
440 views
0 votes
1 answer