Skip to content

Commit

Permalink
Add http-adapter routing parameters to more installers
Browse files Browse the repository at this point in the history
  • Loading branch information
obermeier committed Nov 27, 2023
2 parents 405a929 + 94cac77 commit 9000e41
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ version: "3.4"
services:
extensions-all-jvm:
image: ${SP_DOCKER_REGISTRY}/extensions-all-jvm:${SP_VERSION}
environment:
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=extensions-all-jvm:8090
depends_on:
- consul
- couchdb
Expand Down
2 changes: 2 additions & 0 deletions installer/cli/deploy/standalone/ui/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ version: "3.4"
services:
ui:
image: ${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}
environment:
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=extensions-all-jvm:8090
ports:
- "80:8088"
depends_on:
Expand Down
3 changes: 0 additions & 3 deletions installer/cli/environments/full
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ backend
extensions-all-jvm
consul
couchdb
jobmanager
taskmanager
zookeeper
kafka
influxdb
pipeline-elements-all-flink
2 changes: 2 additions & 0 deletions installer/compose/docker-compose.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ services:

ui:
image: "${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}"
environment:
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=extensions-all-jvm:8090
ports:
- "80:8088"
depends_on:
Expand Down
2 changes: 2 additions & 0 deletions installer/compose/docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ services:

ui:
image: "${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}"
environment:
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=extensions-iiot-minimal:8090
ports:
- "80:8088"
depends_on:
Expand Down
2 changes: 2 additions & 0 deletions installer/compose/docker-compose.nats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ services:

ui:
image: "${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}"
environment:
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=extensions-all-jvm:8090
ports:
- "80:8088"
depends_on:
Expand Down
2 changes: 2 additions & 0 deletions installer/compose/docker-compose.pulsar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ services:

ui:
image: "${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}"
environment:
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=extensions-all-jvm:8090
ports:
- "80:8088"
depends_on:
Expand Down
2 changes: 2 additions & 0 deletions installer/compose/docker-compose.quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ services:

ui:
image: "${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}"
environment:
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=extensions-all-jvm:8090
ports:
- "80:8088"
depends_on:
Expand Down
2 changes: 2 additions & 0 deletions installer/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ services:
# StreamPipes services
backend:
image: "${SP_DOCKER_REGISTRY}/backend:${SP_VERSION}"
environment:
- SP_HTTP_SERVER_ADAPTER_ENDPOINT=extensions-all-jvm:8090
depends_on:
- consul
- couchdb
Expand Down
1 change: 1 addition & 0 deletions installer/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ rm -rf ${HOME}/streampipes-k8s
| Parameter Name | Description | Value |
|-------------------------------------------------|---------------------------------------------------------|------------------------------------------|
| extensions.iiot.appName | IIoT extensions application name | extensions-all-iiot |
| extensions.iiot.imageName | IIoT extensions image name | extensions-all-jvm |
| extensions.iiot.port | Port for the IIoT extensions application | 8090 |
| extensions.iiot.service.name | Name of the IIoT extensions service | extensions-all-iiot |
| extensions.iiot.service.port | TargetPort of the IIoT extensions service | 8090 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
command: ["sh", "-c", "for i in $(seq 1 300); do nc -zvw1 {{.Values.streampipes.core.service.name}} {{ .Values.streampipes.core.service.port }} && exit 0 || sleep 3; done; exit 1"]
containers:
- name: extensions-all-iiot
image: {{ .Values.streampipes.registry }}/extensions-all-iiot:{{ .Values.streampipes.version }}
image: {{ .Values.streampipes.registry }}/{{ .Values.extensions.iiot.imageName }}:{{ .Values.streampipes.version }}
imagePullPolicy: {{ .Values.pullPolicy }}
ports:
- containerPort: {{ .Values.extensions.iiot.port }}
Expand Down
5 changes: 5 additions & 0 deletions installer/k8s/templates/core/ui-ingressroute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ spec:
services:
- name: {{ .Values.streampipes.ui.appName }}
port: {{ .Values.streampipes.ui.service.port }}
- match: Host(`{{ .Values.streampipes.ingressroute.host }}`) && PathPrefix(`/endpoints/`)
kind: Rule
services:
- name: {{ .Values.extensions.iiot.appName }}
port: {{ .Values.extensions.iiot.service.port }}
{{- if .Values.streampipes.ingressroute.certResolverActive }}
tls:
certResolver: {{ .Values.streampipes.ingressroute.certResolver}}
Expand Down
1 change: 1 addition & 0 deletions installer/k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ streampipes:
extensions:
iiot:
appName: extensions-all-iiot
imageName: extensions-all-jvm
port: 8090
service:
name: extensions-all-iiot
Expand Down

0 comments on commit 9000e41

Please sign in to comment.