Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Headless service for redis nodes in kubernetes. Used for both Redis cluster and High Availability solution with Sentinel
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: redis
spec:
clusterIP: None # "None" make it a headless service. No cluster IP.
ports:
- port: 6379
targetPort: 6379
name: redis
selector:
app: redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment