HiveBrain v1.2.0
Get Started
← Back to all entries
snippetkubernetesMinor

How can I expose Ingress service on 80 and 443 to the outer world

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
ingressexposecantheserviceworldhowand443outer

Problem

I used google compute engine to setup a Self Managed Kubernetes, While exposing ingress service via NodePort/LoadBalancer/EnternalIP, it is using default 30000 port range, But I want to expose it on 80 and 443 to the outer world. Please suggest How can I do that?

Solution

It's would be better if you will use ClusterIP type as a service than apply Ingress resource on it

https://kubernetes.io/docs/concepts/services-networking/ingress/#single-service-ingress

Context

StackExchange DevOps Q#11959, answer score: 6

Revisions (0)

No revisions yet.