Skip to content

Commit

Permalink
fix: apisix changes to enable prism v1.4
Browse files Browse the repository at this point in the history
Signed-off-by: Kranium Gikos Mendoza <kraniumgikos.mendoza@iohk.io>
  • Loading branch information
womfoo committed Dec 8, 2023
1 parent d34b163 commit 62acb7f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
28 changes: 28 additions & 0 deletions infrastructure/charts/node/templates/apisixroute-legacy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{- if and (.Values.ingress.enabled) (.Values.server.legacyMode) }}
apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
name: node-route
namespace: "{{ .Release.Namespace }}"
labels:
{{ template "labels.common" . }}
spec:
http:
- name: node-rule
match:
hosts:
{{- range .Values.ingress.applicationUrls }}
- {{ . }}
{{- end }}
paths:
- /*
backends:
- serviceName: node-service
servicePort: 50053
resolveGranularity: service
plugins:
- name: redirect
enable: true
config:
http_to_https: true
{{- end -}}
2 changes: 1 addition & 1 deletion infrastructure/charts/node/templates/apisixroute.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.ingress.enabled }}
{{- if and (.Values.ingress.enabled) (not .Values.server.legacyMode) }}
apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
Expand Down
11 changes: 11 additions & 0 deletions infrastructure/charts/node/templates/apisixupstream-legacy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if .Values.ingress.enabled }}
apiVersion: apisix.apache.org/v2
kind: ApisixUpstream
metadata:
name: node-service
namespace: "{{ .Release.Namespace }}"
spec:
portLevelSettings:
- port: 50053
scheme: grpc
{{- end }}
1 change: 1 addition & 0 deletions infrastructure/charts/node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ server:
moveScheduledToPendingPeriod: 3s
refereshAndSubmitPeriod: 3s
confirmationBlocks: 1
legacyMode: false
image:
repository: ghcr.io
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 62acb7f

Please sign in to comment.