Created
November 4, 2016 22:15
-
-
Save thomastaylor312/8e3083b5c89b028b685198f6a9528997 to your computer and use it in GitHub Desktop.
A service for exposing inter-node Cassandra ports in Kubernetes
This file contains 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: | |
labels: | |
app: cassandra | |
# Allows service to connect to containers that aren't in a ready state | |
# This is needed so the cluster can actually spin up | |
annotations: | |
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" | |
name: cassandra | |
namespace: cassandra | |
spec: | |
ports: | |
- port: 7000 | |
name: intra-node | |
- port: 7001 | |
name: tls-intra-node | |
selector: | |
app: cassandra |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment