-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable legacy prism node (#828)
* feat: support adding environment vars from helm Signed-off-by: Kranium Gikos Mendoza <kraniumgikos.mendoza@iohk.io> * fix: cardanoWallet hostname Signed-off-by: Kranium Gikos Mendoza <kraniumgikos.mendoza@iohk.io> * fix: apisix changes to enable prism v1.4 Signed-off-by: Kranium Gikos Mendoza <kraniumgikos.mendoza@iohk.io> --------- Signed-off-by: Kranium Gikos Mendoza <kraniumgikos.mendoza@iohk.io>
- Loading branch information
Showing
5 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
infrastructure/charts/node/templates/apisixroute-legacy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
infrastructure/charts/node/templates/apisixupstream-legacy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters