Kumud Jain
Kumud Jain

Reputation: 35

Converting a Openshift Route to Kubernetes Ingress

I have a Openshift Route of type :

- apiVersion: route.openshift.io/v1
  kind: Route
  metadata:
    name: <Route name>
    labels:
      app.kubernetes.io/name: <name>
  spec:
    host: <hostname>
    port:
      targetPort: http
    tls:
      termination: passthrough
    to:
      kind: Service
      name: <serviceName>

I want to convert it into a Ingress Object as there are no routes in bare k8s. I couldn't find any reference to tls termination as passthrough in Ingress documentation. Can someone please help me converting this to an Ingress object?

Upvotes: 2

Views: 1200

Answers (1)

coderanger
coderanger

Reputation: 54211

TLS passthrough is not officially part of the Ingress spec. Some specific ingress controllers support it, usually via non-standard TCP proxy modes. But what you probably want is a LoadBalancer-type service.

Upvotes: 2

Related Questions