Skip to content

Instantly share code, notes, and snippets.

@thomastaylor312
Created November 4, 2016 22:15
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 thomastaylor312/8e3083b5c89b028b685198f6a9528997 to your computer and use it in GitHub Desktop.
Save thomastaylor312/8e3083b5c89b028b685198f6a9528997 to your computer and use it in GitHub Desktop.
A service for exposing inter-node Cassandra ports in Kubernetes
---
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