daniel
daniel

Reputation: 1070

Is it possible to create route for both HTTP and HTTPS with the same host for a service?

I have created a route for HTTP, and when creating another route with the same host, the status of the route will be "Rejected".

Is it possible to create route for both HTTP and HTTPS with the same host for a service?

I am using the openshift sandbox:

enter image description here

Upvotes: 0

Views: 1278

Answers (1)

daniel
daniel

Reputation: 1070

I found the issue, it is because the host is already been used by the HTTP route. What I need to do is to update existing route with the TLS settings, and set the "Insecure traffic" to "Allow"

apiVersion: v1
kind: Route
spec:
  tls:
    insecureEdgeTerminationPolicy: Allow

Upvotes: 2

Related Questions