Last active
May 19, 2022 14:20
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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