Silk0vsky
Silk0vsky

Reputation: 1042

Kubernetes service with different port types (NodePort / ClisterIP)

Is it possible to expose service ports with different policies like NodePort or ClusterIP.

For example we have

Right now I can create different services of types NodePort and ClisterIP but is it possible to handle it with single k8s 'Service'?

Upvotes: 1

Views: 270

Answers (1)

No, using two distinct services each of its own type is the right way to do it, and there is no harm/overhead in doing it like this

Upvotes: 1

Related Questions