Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #309 from stakater/update-route-page
Browse files Browse the repository at this point in the history
Update route page
  • Loading branch information
TehreemNisa authored May 9, 2022
2 parents bce9e75 + fda98b9 commit a1ee47f
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions content/sre/networking/routes.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Routes

To expose applications in an openshift cluster over the internet `routes` are used. Routes expose a service at a
hostname, for example app.example.com, so that external clients can reach the service.
hostname, for example app.example.com, so that external clients can reach the service.

As part of Stakater Cloud offering, we provide our end users with a domain
*.apps.<CLUSTER_NAME>.openshift.<ClOUD_PROVIDER>.stakater.com that is pre-configured with SSL to provide a secure connection.
SAAP provides a unique domain with every cluster with the format: `*.apps.<CLUSTER_NAME>.<CLUSTER_ID>.kubeapp.cloud` that is pre-configured with SSL to provide a secure connection.

## Sample route for a service

Expand All @@ -26,14 +25,9 @@ apiVersion: route.openshift.io/v1
metadata:
name: ruby-hello-world
namespace: route-demo
# Add this label to use default router that serves *.apps.<CLUSTER_NAME>.openshift.<ClOUD_PROVIDER>.stakater.com
labels:
router: default
annotations:
openshift.io/host.generated: 'true'
spec:
# In case you omit `host` field openshift will generate a hostname for you as <name>-<namespace-name>.DOMAIN_NAME
host: hello-world-app.apps.<CLUSTER_NAME>.openshift.<ClOUD_PROVIDER>.stakater.com
# In case you omit `host` field openshift will generate a hostname for you as <svc-name>-<namespace-name>.apps.<CLUSTER_NAME>.<CLUSTER_ID>.kubeapp.cloud
host: hello-world-app.apps.<CLUSTER_NAME>.<CLUSTER_ID>.kubeapp.cloud
to:
kind: Service
name: ruby-hello-world
Expand Down Expand Up @@ -66,17 +60,14 @@ apiVersion: route.openshift.io/v1
metadata:
name: ruby-hello-world
namespace: route-demo
# Add this label to use default router that serves *.apps.<CLUSTER_NAME>.openshift.<ClOUD_PROVIDER>.stakater.com
labels:
router: default
annotations:
# Will whitelist this route for the 8.8.8.8 and 8.8.8.9
haproxy.router.openshift.io/ip_whitelist: 8.8.8.8 8.8.8.9
# Sets a server-side timeout for the route for 5000ms
haproxy.router.openshift.io/timeout: 5000ms
spec:
# In case you omit `host` field openshift will generate a hostname for you as <name>-<namespace-name>.DOMAIN_NAME
host: hello-world-app.apps.<CLUSTER_NAME>.openshift.<ClOUD_PROVIDER>.stakater.com
host: hello-world-app.apps.<CLUSTER_NAME>.<CLUSTER_ID>.kubeapp.cloud
to:
kind: Service
name: ruby-hello-world
Expand All @@ -89,4 +80,4 @@ spec:
wildcardPolicy: None
```
For further details: [Route Configuration](https://docs.openshift.com/container-platform/4.4/networking/routes/route-configuration.html)
For further details: [Route Configuration](https://docs.openshift.com/container-platform/4.10/networking/routes/route-configuration.html)

0 comments on commit a1ee47f

Please sign in to comment.