Skip to content

Commit

Permalink
- If users want a route to the web service, added a Route with the se…
Browse files Browse the repository at this point in the history
…rvice
  • Loading branch information
dkaushik95 committed Feb 24, 2021
1 parent db45fae commit 2fcc0c9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions K8s/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,4 @@ $ helm install robot-shop --set openshift=true helm
| payment.gateway | null | string | External URL end-point to simulate partial/3rd party traces. |
| psp.enabled | false | boolean | Enable Pod Security Policy for clusters with a PSP Admission controller |
| redis.storageClassName | standard | string | Storage class to use with Redis's StatefulSet. The default for EKS is gp2. |
| ocCreateRoute | false | boolean | If you are running on OpenShift and need a Route to the web service, set this to `true` |
11 changes: 11 additions & 0 deletions K8s/helm/templates/web-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@ spec:
{{ else }}
type: LoadBalancer
{{ end }}
---
{{if .Values.ocCreateRoute}}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: web
spec:
to:
kind: Service
name: web
{{end}}
2 changes: 2 additions & 0 deletions K8s/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ openshift: false
# Storage class to use with redis statefulset.
redis:
storageClassName: standard

ocCreateRoute: false

0 comments on commit 2fcc0c9

Please sign in to comment.