-
Notifications
You must be signed in to change notification settings - Fork 43
feat(lightspeed): replace RAG init container with OKP deployment #3370
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
base: main
Are you sure you want to change the base?
Changes from all commits
db3015f
3f2661c
21002b6
b8ae9d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # OKP (Offline Knowledge Portal) standalone Deployment. | ||
| # name/labels/selector are set by the operator at runtime (per Backstage CR); the values | ||
| # below are placeholders. The image ref is intentionally declared here (not in Go source) | ||
| # so midstream digest-pinning can resolve it in the generated bundle ConfigMap. | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: lightspeed-okp | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app.kubernetes.io/name: lightspeed-okp | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/name: lightspeed-okp | ||
| spec: | ||
| # OKP serves docs (Solr + httpd) and needs no Kubernetes API access. | ||
| automountServiceAccountToken: false | ||
| containers: | ||
| - name: okp | ||
|
Check warning on line 22 in config/profile/rhdh/default-config/flavours/intelligent-assistant/okp-deployment.yaml
|
||
| image: registry.redhat.io/offline-knowledge-portal/rhokp-rhel9:1.2.10-1786628394 | ||
| imagePullPolicy: IfNotPresent | ||
| securityContext: | ||
| allowPrivilegeEscalation: false | ||
| runAsNonRoot: true | ||
| capabilities: | ||
| drop: | ||
| - ALL | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| ports: | ||
| - name: httpd | ||
| containerPort: 8080 | ||
| protocol: TCP | ||
| - name: solr | ||
| containerPort: 8983 | ||
| protocol: TCP | ||
| env: | ||
| - name: SOLR_JAVA_MEM | ||
| value: "-Xms1g -Xmx1g" | ||
| - name: SOLR_HOST_BIND | ||
| value: "0.0.0.0" | ||
| # The OKP image's httpd config reads these exact names | ||
| # (config/httpd conf.d: ServerName ${MIMIR_HTTPD_SERVER_NAME}, | ||
| # Define compressed_${COMPRESSED}_encrypt_${ENCRYPT}); the | ||
| # HTTPD_-prefixed names are ignored. Matches rhdh-chart. | ||
| - name: MIMIR_HTTPD_SERVER_NAME | ||
| value: "localhost" | ||
| - name: COMPRESSED | ||
| value: "true" | ||
| - name: ENCRYPT | ||
| value: "false" | ||
| resources: | ||
| requests: | ||
| cpu: 200m | ||
| memory: 2Gi | ||
| limits: | ||
| cpu: "2" | ||
| memory: 4Gi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # OKP (Offline Knowledge Portal) standalone OpenShift Route. | ||
| # name/labels and spec.to.name are set by the operator at runtime (per Backstage CR). | ||
| # Applied on OpenShift only. | ||
| apiVersion: route.openshift.io/v1 | ||
| kind: Route | ||
| metadata: | ||
| name: lightspeed-okp | ||
| spec: | ||
| to: | ||
| kind: Service | ||
| name: lightspeed-okp | ||
| port: | ||
| targetPort: httpd | ||
| tls: | ||
| termination: edge | ||
| insecureEdgeTerminationPolicy: Allow |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # OKP (Offline Knowledge Portal) standalone ClusterIP Service. | ||
| # name/labels/selector are set by the operator at runtime (per Backstage CR). | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: lightspeed-okp | ||
| spec: | ||
| type: ClusterIP | ||
| selector: | ||
| app.kubernetes.io/name: lightspeed-okp | ||
| ports: | ||
| - name: httpd | ||
| port: 8080 | ||
| targetPort: httpd | ||
| protocol: TCP | ||
| - name: solr | ||
| port: 8983 | ||
| targetPort: solr | ||
| protocol: TCP |
Uh oh!
There was an error while loading. Please reload this page.