Skip to content

Instantly share code, notes, and snippets.

@timroster
Last active August 10, 2021 14:52
Show Gist options
  • Save timroster/c1e5015bf592c9e819163456df5f4caa to your computer and use it in GitHub Desktop.
Save timroster/c1e5015bf592c9e819163456df5f4caa to your computer and use it in GitHub Desktop.
Example of an edge route for an OpenShift application that does not have TLS at the service endpoint
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: myapplicationroute
namespace: myproject
labels:
app: myapplication
release: v1.0
spec:
host: myhost.customdomain.com
to:
kind: Service
name: myapplication
weight: 100
port:
targetPort: 3000-tcp
tls:
termination: edge
key: |-
-----BEGIN PRIVATE KEY-----
[...]
-----END PRIVATE KEY-----
certificate: |-
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----
caCertificate: |-
-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment