- If users want a route to the web service, added a Route with the service

This commit is contained in:
Dishant Kaushik
2021-02-24 14:30:05 -05:00
parent db45fae8d6
commit 2fcc0c9835
3 changed files with 14 additions and 0 deletions

View File

@@ -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` |

View File

@@ -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}}

View File

@@ -31,3 +31,5 @@ openshift: false
# Storage class to use with redis statefulset.
redis:
storageClassName: standard
ocCreateRoute: false