Comments (2)
HTTP ingress is not going to work here as Cassandra uses TCP. There are ways to do TCP ingress with nginx (and other ingress controllers). Typically it requires either adding a configmap to the ingress or using a custom resource definition provided via the ingress instead of the standard k8s ingress objects. (Note the Gateway API should help with this in the future).
Now when you get that configured you must decide how you route from the ingress to pods. The naive solution is to let it round robin, but this will introduce latency as the drivers prefer to connect to a node that houses the data for the query and use it as a coordinator. Additionally, should you run multiple C* clusters within a single k8s cluster how do you route to the different clusters? One option is to put each cluster on its own port within the ingress. Alternatively you could leverage TLS with SNI to allow for direct routing from the ingress to the appropriate node. It is worth noting that if you go this route there is additional configuration needed within the client application to configure TLS appropriately AND logic to update the routing within your ingress should you C* cluster topology change.
That's not to say it isn't possible, and we have some examples of how to accomplish this.
from k8ssandra.
So with all that being said what type of example would you prefer?
- TLS w/ SNI routing
- Port-based routing
from k8ssandra.
Related Issues (20)
- When adding new node to an existing cluster, the new node gets deployed by K8s but stays at 1/2 forever HOT 17
- Add nodeSelector and tolerations support to cass-operator helm chart
- The search button in the K8ssandra documentation does not work HOT 1
- Warning CALL list keyspaces system_traces failed on all datacenter dc1 pods
- cass-operator chart does not allow override of certain images in values.yaml
- Need Helm chart to bring cassandra cluster as kind K8ssandraCluster for reaper and Medusa. HOT 4
- kustomize is now integrated into kubectl use this command instead
- Stargate doesn't start and it remains in CrashLoopBackoff state HOT 1
- Getting 404 for https://helm.k8ssandra.io/stable HOT 2
- How to create a single cluster with `containerd` instead of `docker` ?
- k8ssandra repair taking days to complete HOT 1
- Issue with Replication Alteration During K8ssandra v1 to K8ssandra-Operator Migration HOT 2
- cass-operator chart is missing resources
- If metrics are set to :8080, then the containerPort should be set also HOT 1
- Pull cass-operator from cr.k8ssandra.io and cr.dtsx.io
- Make it possible to disable the check for cert-manager in the Helm chart
- Certificate Request failure due to missing secret in cert-manager HOT 1
- Getting started guides assume that persistent volumes exist.
- High severity vulnerabilities CVE-2023-27561 and CVE-2024-21626 in runc v1.0.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8ssandra.