Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{- if .Values.frontend.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "frontend.fullname" . }}
labels:
{{- include "frontend.labels" . | nindent 4 }}
{{- if and .Values.frontend.ingress .Values.frontend.ingress.annotations }}
{{- with .Values.frontend.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
ingressClassName: openshift-default
rules:
- host: {{ include "frontend.fullname" . }}.{{ .Values.global.domain }}
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: {{ include "frontend.fullname" . }}
port:
number: 3000
{{- end }}

This file was deleted.

11 changes: 3 additions & 8 deletions charts/quickstart-openshift-helpers/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,9 @@ frontend:
targetPort: 3003
protocol: TCP
name: metrics
#-- the route for the component. it is optional and is an object. To make the application accessible from internet, use the route.
route:
#-- enable or disable the route.
enabled: true
#-- the hostname for the route. this will be the URL for the application, you can access by https://{{ .Release.Name }}-frontend.{{ .Values.global.domain }}
host: "{{ .Release.Name }}-frontend.{{ .Values.global.domain }}"
#-- the target port of the service. this is the port where the service is listening on. The name is mapped to the port name in the service.
targetPort: http
ingres:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to fix, the ingres to ingress

annotations:
route.openshift.io/termination: "edge"

crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single postgres
enabled: false
Expand Down