-
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 15 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 |
|---|---|---|
| @@ -1,25 +1,111 @@ | ||
| defaults: | ||
| global: | ||
| resources: | ||
| requests: | ||
| cpu: 400m | ||
| memory: 512Mi | ||
| probes: | ||
| 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.20.126.186.199.nip.io | ||
| delivery: | ||
| blueprint-web: | ||
| ingress: | ||
| enabled: true | ||
| ingressClassName: "nginx" | ||
| hosts: | ||
| - host: puresight.127.0.0.1.nip.io | ||
| - host: puresight.20.126.186.199.nip.io | ||
| paths: | ||
| - servicePort: 80 | ||
| tls: | ||
| - hosts: | ||
| - puresight.20.126.186.199.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.20.126.186.199.nip.io | ||
| paths: | ||
| - path: /search | ||
| tls: | ||
| - hosts: | ||
| - puresight.20.126.186.199.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,22 @@ | ||
| STREAMX_TOKEN=$(kubectl get secrets sx-sec-auth-jwt-websight -o jsonpath -o jsonpath="{.data.jwt}" | base64 --decode) | ||
|
|
||
| INGESTION_URL="http://ingestion.20.126.186.199.nip.io" | ||
| PRODUCT_ID=${1:-B071FMSYNH} | ||
| PRICE=${2:-2559} | ||
|
|
||
| curl -o - -X POST "${INGESTION_URL}/ingestion/v1/channels/data/messages" \ | ||
| -H "Authorization: Bearer ${STREAMX_TOKEN}" \ | ||
| -H 'Content-Type: application/json' \ | ||
| -d '{ | ||
| "key" : "price:'${PRODUCT_ID}'", | ||
| "action" : "publish", | ||
| "eventTime" : null, | ||
| "properties" : { }, | ||
| "payload" : { | ||
| "dev.streamx.blueprints.data.Data" : { | ||
| "content": { | ||
| "bytes": "{ \"price\": { \"value\": \"'${PRICE}'\" } }" | ||
| } | ||
| } | ||
| } | ||
| }' |
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,38 @@ | ||
| TOKEN=$(kubectl get secrets sx-sec-auth-jwt-websight -o jsonpath -o jsonpath="{.data.jwt}" | base64 --decode) | ||
|
|
||
| INGESTION_URL="http://ingestion.20.126.186.199.nip.io" | ||
| PRODUCT_ID=${1:-B071FMSYNH} | ||
|
|
||
| curl -o - -X POST "${INGESTION_URL}/ingestion/v1/channels/data/messages" \ | ||
| -H 'Content-Type: application/json' \ | ||
| -H "Authorization: Bearer ${TOKEN}" \ | ||
| -d '{ | ||
| "key" : "review:'${PRODUCT_ID}':1", | ||
| "action" : "publish", | ||
| "eventTime" : null, | ||
| "properties" : { }, | ||
| "payload" : { | ||
| "dev.streamx.blueprints.data.Data" : { | ||
| "content": { | ||
| "bytes": "{\"title\": \"A Dreamy Slumber\",\"content\": \"This bed has been a game-changer for my sleep quality. The comfort level is unmatched, and it feels like I am sleeping on a cloud. I wake up refreshed and ready to tackle the day. Worth every penny!\",\"stars\": 5,\"author\": \"Sarah Johnson\",\"date\": \"July 15, 2023\"}" | ||
| } | ||
| } | ||
| } | ||
| }' | ||
|
|
||
| curl -o - -X POST "${INGESTION_URL}/ingestion/v1/channels/data/messages" \ | ||
| -H 'Content-Type: application/json' \ | ||
| -H "Authorization: Bearer ${TOKEN}" \ | ||
| -d '{ | ||
| "key" : "review:'${PRODUCT_ID}':2", | ||
| "action" : "publish", | ||
| "eventTime" : null, | ||
| "properties" : { }, | ||
| "payload" : { | ||
| "dev.streamx.blueprints.data.Data" : { | ||
| "content": { | ||
| "bytes": "{\"title\": \"Cozy and Supportive\",\"content\": \"The bed provides a cozy nest-like feeling, and the support is excellent for my back. While it is a bit pricier than I would like, the comfort it offers makes it a solid investment for a good night'\''s sleep.\",\"stars\": 4,\"author\": \"Michael Thompson\",\"date\": \"August 3, 2023\"}" | ||
| } | ||
| } | ||
| } | ||
| }' |
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
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.
Uh oh!
There was an error while loading. Please reload this page.