Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing stargate component in GKE #1583

Open
hoangpham95 opened this issue Feb 14, 2023 · 2 comments
Open

Exposing stargate component in GKE #1583

hoangpham95 opened this issue Feb 14, 2023 · 2 comments
Assignees
Labels
question Further information is requested stale

Comments

@hoangpham95
Copy link

Type of question
I have trouble with exposing stargate service with an external IP address in GKE.

What did you do?

  1. Create an ingress and attach to the service with the following yaml:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-name
  annotations:
spec:
  defaultBackend:
    service:
      name: service-name
      port:
        number: 9042

However when describing the ingress, the address is empty.
2. Update the service with a static IP with
kubectl patch svc service-name -p '{"spec": {"externalIPs": ["some-ip"]}}'
but the service's external IP address is still missing.

Did you expect to see some different?

Environment

  • Helm charts version
    version.BuildInfo{Version:"v3.11.0", GitCommit:"472c5736ab01133de504a826bd9ee12cbe4e7904", GitTreeState:"clean", GoVersion:"go1.19.5"}
@hoangpham95 hoangpham95 added the question Further information is requested label Feb 14, 2023
@hoangpham95 hoangpham95 changed the title Exposing stargate component externally Exposing stargate component in GKE Feb 14, 2023
@Miles-Garnsey
Copy link
Member

Hi @hoangpham95, this is really a GKE ingress question more than a k8ssandra question, but I'm happy to try to help.

What protocols are you planning to run over your ingress? This will affect the type you need.

@Miles-Garnsey Miles-Garnsey self-assigned this May 16, 2023
@adejanovski
Copy link
Contributor

Hi @hoangpham95,

you may want to check these docs to figure out how to expose services externally in GKE.
One thing to note though, is that the Cassandra drivers will discover the coordinator nodes IPs and try to use them to connect to them directly.
Hence, the static IP address that you'll set for the service/ingress will only be used as contact point, but then the driver will try to connect directly to the pods IPs, so you'll want to make sure they are reachable from your client apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

3 participants