Skip to content

Instantly share code, notes, and snippets.

@jithin-scaria
Last active May 19, 2022 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jithin-scaria/7637128201a71ae52c34447cbb9831fd to your computer and use it in GitHub Desktop.
Save jithin-scaria/7637128201a71ae52c34447cbb9831fd to your computer and use it in GitHub Desktop.
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