-
Notifications
You must be signed in to change notification settings - Fork 0
[DXP-1512] StreamX Platform adjustments #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
kamilchociej
wants to merge
19
commits into
main
Choose a base branch
from
feature/DXP-1512
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9b2ea4f
[DXP-1490] Added support for operator deployments
michalcukierman 4a2d40c
[DXP-1490] Introducing proxy load balancer for local development
michalcukierman 7dcfa7b
[DXP-1490] Upgraded to search 1.0.1
michalcukierman 6d14a27
[DXP-1490] Fixed README
michalcukierman f405a4d
[DXP-1490] Fixed README
michalcukierman 241f2f2
[DXP-1490] Fixed README
michalcukierman 7074851
[DXP-1490] Added demo architecture
michalcukierman 85a273b
[DXP-1490] Fixed configs
michalcukierman 62f3116
[DXP-1490] Added support for Kubernetes deployments
michalcukierman 0da5616
[DXP-1490] Added support for Kubernetes deployments
michalcukierman 83287f6
[DXP-1490] Added support for Kubernetes deployments
michalcukierman 39ebe59
[DXP-1490] Fixed setting TOKEN in WebSight
michalcukierman cc5b190
[DXP-1490] Updated StreamX Blueprints version
michalcukierman bf88f9d
[DXP-1512] StreamX Platform adjustments
kamilchociej 79468c4
Merge remote-tracking branch 'origin/main' into feature/DXP-1512
kamilchociej f9d8bef
[DXP-1512] StreamX CLI Interpolation support
kamilchociej 3def92f
[DXP-1512] Default k8s probes config TODO
kamilchociej 73e8dac
[DXP-1512] Introduced STREAMX_INTERNAL_INGESTION_URL env
kamilchociej 79a525f
[DXP-1512] probes adjustment
kamilchociej File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -12,3 +12,6 @@ auth/* | |
| .env/* | ||
| /secrets/generated/ | ||
| /target | ||
|
|
||
| # streamx run delivery web service content repository | ||
| /repository | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,25 +1,111 @@ | ||
| defaults: | ||
| global: | ||
| resources: | ||
| requests: | ||
| cpu: 400m | ||
| memory: 512Mi | ||
| probes: # TODO: Remove default kubernetes configs after default StreamX Operator defaults adjustment. | ||
| liveness: | ||
| httpGet: | ||
| path: /q/health/live | ||
| port: 8080 | ||
| initialDelaySeconds: 0 # Default value | ||
| periodSeconds: 10 # Default value | ||
| timeoutSeconds: 1 # Default value | ||
| successThreshold: 1 # Default value | ||
| failureThreshold: 3 # Default value | ||
| readiness: | ||
| httpGet: | ||
| path: /q/health/ready | ||
| port: 8080 | ||
| initialDelaySeconds: 0 # Default value | ||
| periodSeconds: 10 # Default value | ||
| timeoutSeconds: 1 # Default value | ||
| successThreshold: 1 # Default value | ||
| failureThreshold: 3 # Default value | ||
| startup: | ||
| httpGet: | ||
| path: /q/health/startup | ||
| port: 8080 | ||
| initialDelaySeconds: 0 # Default value | ||
| periodSeconds: 10 # Default value | ||
| timeoutSeconds: 1 # Default value | ||
| successThreshold: 1 # Default value | ||
| failureThreshold: 3 | ||
| delivery: | ||
| replicas: 3 | ||
|
|
||
| ingestion: | ||
| rest-ingestion: | ||
| ingress: | ||
| enabled: true | ||
| ingressClassName: "nginx" | ||
| annotations: | ||
| nginx.ingress.kubernetes.io/proxy-body-size: "500m" | ||
| hosts: | ||
| - host: ingestion.127.0.0.1.nip.io | ||
| - host: host.docker.internal | ||
| - host: ingestion.${streamx-ingress-ip}.nip.io | ||
| delivery: | ||
| blueprint-web: | ||
| ingress: | ||
| enabled: true | ||
| ingressClassName: "nginx" | ||
| hosts: | ||
| - host: puresight.127.0.0.1.nip.io | ||
| - host: puresight.${streamx-ingress-ip}.nip.io | ||
| paths: | ||
| - servicePort: 80 | ||
| tls: | ||
| - hosts: | ||
| - puresight.${streamx-ingress-ip}.nip.io | ||
| secretName: blueprint-web.crt | ||
| annotations: | ||
| cert-manager.io/cluster-issuer: "letsencrypt-cert-cluster-issuer" | ||
| blueprint-search: | ||
| ingress: | ||
| enabled: true | ||
| ingressClassName: "nginx" | ||
| hosts: | ||
| - host: puresight.127.0.0.1.nip.io | ||
| - host: puresight.${streamx-ingress-ip}.nip.io | ||
| paths: | ||
| - path: /search | ||
| tls: | ||
| - hosts: | ||
| - puresight.${streamx-ingress-ip}.nip.io | ||
| secretName: blueprint-search.crt | ||
| annotations: | ||
| cert-manager.io/cluster-issuer: "letsencrypt-cert-cluster-issuer" | ||
| probes: | ||
| liveness: { } | ||
| components: | ||
| opensearch: | ||
| sidecar: true | ||
| probes: | ||
| readiness: | ||
| httpGet: | ||
| path: / | ||
| port: 9200 | ||
| scheme: HTTP | ||
| initialDelaySeconds: 5 | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 5 | ||
| successThreshold: 1 | ||
| failureThreshold: 3 | ||
| liveness: | ||
| httpGet: | ||
| path: / | ||
| port: 9200 | ||
| scheme: HTTP | ||
| initialDelaySeconds: 5 | ||
| periodSeconds: 15 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 3 | ||
| startup: | ||
| httpGet: | ||
| path: / | ||
| port: 9200 | ||
| scheme: HTTP | ||
| initialDelaySeconds: 30 | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 5 | ||
| successThreshold: 1 | ||
| failureThreshold: 3 | ||
|
|
This file contains hidden or 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,8 @@ | ||
| # Cloud kubeconfig path. If StreamX Platform Terraform script was applied on the same host as this script is launched it can be taken from its 'kubeconfig_path' output. | ||
| export KUBECONFIG= | ||
| # Cloud Load Balancer IP. Should be taken from StreamX Platform Terraform script 'loadbalancer_ip' output | ||
| export STREAMX_INGRESS_IP= | ||
| export STREAMX_TOKEN_PIM=$(kubectl get secrets sx-sec-auth-jwt-pim -o jsonpath -o jsonpath="{.data.jwt}" | base64 --decode) | ||
| export STREAMX_TOKEN_WS=$(kubectl get secrets sx-sec-auth-jwt-websight -o jsonpath -o jsonpath="{.data.jwt}" | base64 --decode) | ||
| export STREAMX_INGESTION_URL="http://ingestion.${STREAMX_INGRESS_IP}.nip.io" | ||
| export STREAMX_INTERNAL_INGESTION_URL="$STREAMX_INGESTION_URL" |
This file contains hidden or 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,5 @@ | ||
| export STREAMX_TOKEN_PIM= | ||
| export STREAMX_TOKEN_WS= | ||
| export STREAMX_INGRESS_IP="127.0.0.1" | ||
| export STREAMX_INGESTION_URL="http://ingestion.${STREAMX_INGRESS_IP}.nip.io" | ||
| export STREAMX_INTERNAL_INGESTION_URL="http://host.docker.internal" | ||
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -143,7 +143,7 @@ processing: | |
| topic: outboxes/web-resources | ||
| environment: | ||
| # local test domain, see readme | ||
| STREAMX_BLUEPRINTS_SITEMAP-GENERATOR-PROCESSING-SERVICE_BASE-URL: "http://puresight.127.0.0.1.nip.io" | ||
| STREAMX_BLUEPRINTS_SITEMAP-GENERATOR-PROCESSING-SERVICE_BASE-URL: "http://puresight.${STREAMX_INGRESS_IP}.nip.io" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we could configure whole domains, so that many people can deploy on the single cluster in multiple namespaces? |
||
| STREAMX_BLUEPRINTS_SITEMAP-GENERATOR-PROCESSING-SERVICE_OUTPUT-KEY: "/sitemap.xml" | ||
|
|
||
| blueprint-indexable-resource-extractor: | ||
|
|
||
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local should be default from .env file, that is overridden by sh script for cloud deployment.
https://quarkus.io/guides/images/config-sources.png