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

How to expose ports #634

Closed
domcar opened this issue Feb 12, 2019 · 2 comments
Closed

How to expose ports #634

domcar opened this issue Feb 12, 2019 · 2 comments

Comments

@domcar
Copy link

domcar commented Feb 12, 2019

Hi,

I wonder how I can open tcp ports with ingress-gce.
To be clear, I used until now nginx-controller and I used to create a configmap, for example:

apiVersion: v1
data:
  "22": gitlab/gitlab-gitlab-shell:22
kind: ConfigMap
metadata:
  name: gitlab-nginx-ingress-tcp
  namespace: gitlab

With this configmap I can use port 22 on my gitlab deployment.

How can I achieve the same with gce-ingress?
If the same question was already answered or if there is a tutorial I can follow, could you please point me to it?

Thanks for the help!

@domcar domcar changed the title How to expose tcp ports How to expose ports Feb 12, 2019
@rramkumar1
Copy link
Contributor

rramkumar1 commented Mar 4, 2019

@domcar Ingress-gce cannot support this since it only configures HTTP(S) load balancers.

You should be able to achieve this by creating a k8s Service of type "LoadBalancer" though [1].

Please close the issue if that works for you.

[1] https://cloud.google.com/kubernetes-engine/docs/how-to/exposing-apps

@rramkumar1
Copy link
Contributor

I'm going to go ahead and close this. Please reopen if the answer was not sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants