openshift / lightspeed-operator Goto Github PK
View Code? Open in Web Editor NEWOperator for the OpenShift Lightspeed Service
License: Apache License 2.0
Operator for the OpenShift Lightspeed Service
License: Apache License 2.0
When olsconfig instance is created lightspeed-app-server
crashes every time. The logs show that it failed to establish a connection with the Redis server.
App server logs: err.log
olsconfig:
apiVersion: v1
data:
olsconfig.yaml: |
llm_providers:
- credentials_path: /etc/apikeys/openai-api-keys/apitoken
models:
- name: gpt-3.5-turbo-1106
name: OpenAI
ols_config:
conversation_cache:
redis:
host: lightspeed-redis-server.openshift-lightspeed.svc
max_memory: 1024mb
max_memory_policy: allkeys-lru
port: 6379
type: redis
logging_config:
app_log_level: INFO
lib_log_level: INFO
kind: ConfigMap
Pods in openshift-lightspeed
ns:
NAME READY STATUS RESTARTS AGE
lightspeed-app-server-6c69fbb795-trdln 0/1 CrashLoopBackOff 6 (4m17s ago) 11m
lightspeed-console-plugin-c696fc775-c6wc6 1/1 Running 0 11m
lightspeed-console-plugin-c696fc775-pb9hn 1/1 Running 0 11m
lightspeed-operator-controller-manager-84ffb98448-7tm9p 2/2 Running 0 20m
lightspeed-redis-server-7fd5bdff98-887mv 1/1 Running 0 11m
redis-server logs:
1:C 19 Mar 2024 10:40:27.285 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 19 Mar 2024 10:40:27.285 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 19 Mar 2024 10:40:27.285 * Configuration loaded
1:M 19 Mar 2024 10:40:27.285 * monotonic clock: POSIX clock_gettime
1:M 19 Mar 2024 10:40:27.285 * Running mode=standalone, port=6379.
1:M 19 Mar 2024 10:40:27.285 * Server initialized
1:M 19 Mar 2024 10:40:27.285 * Ready to accept connections tcp
oc get olsconfig -o yaml
apiVersion: ols.openshift.io/v1alpha1
kind: OLSConfig
metadata:
creationTimestamp: "2024-03-19T10:40:18Z"
generation: 1
labels:
app.kubernetes.io/created-by: lightspeed-operator
app.kubernetes.io/instance: olsconfig-sample
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: olsconfig
app.kubernetes.io/part-of: lightspeed-operator
name: cluster
resourceVersion: "169445"
uid: d1357381-480f-4eda-acd8-537a2f108505
spec:
llm:
providers:
- credentialsSecretRef:
name: openai-api-keys
models:
- name: gpt-3.5-turbo-1106
name: OpenAI
ols:
conversationCache:
redis:
maxMemory: 1024mb
maxMemoryPolicy: allkeys-lru
type: redis
deployment:
replicas: 1
enableDeveloperUI: false
logLevel: INFO
On my OpenShift 4.16 with OpenShift Lightspeed Operator 0.1.2
ServiceMonitor lightspeed-app-server-monitor was rejected due to invalid configuration: it accesses file system via bearer token file which Prometheus specification prohibits
ServiceMonitor lightspeed-operator-controller-manager-metrics-monitor was rejected due to invalid configuration: it accesses file system via tls config which Prometheus specification prohibits
$ oc get event -n openshift-lightspeed
LAST SEEN TYPE REASON OBJECT MESSAGE
29m Warning InvalidConfiguration servicemonitor/lightspeed-app-server-monitor ServiceMonitor lightspeed-app-server-monitor was rejected due to invalid configuration: it accesses file system via bearer token file which Prometheus specification prohibits
29m Warning InvalidConfiguration servicemonitor/lightspeed-operator-controller-manager-metrics-monitor ServiceMonitor lightspeed-operator-controller-manager-metrics-monitor was rejected due to invalid configuration: it accesses file system via tls config which Prometheus specification prohibits
$ oc get servicemonitors.monitoring.coreos.com -n openshift-lightspeed -o yaml|oc neat
- apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app.kubernetes.io/component: metrics
app.kubernetes.io/managed-by: lightspeed-operator
app.kubernetes.io/name: lightspeed-service-api
app.kubernetes.io/part-of: openshift-lightspeed
monitoring.openshift.io/collection-profile: full
name: lightspeed-app-server-monitor
namespace: openshift-lightspeed
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
interval: 30s
path: /metrics
port: https
scheme: https
tlsConfig:
caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
certFile: /etc/prometheus/secrets/metrics-client-certs/tls.crt
keyFile: /etc/prometheus/secrets/metrics-client-certs/tls.key
serverName: lightspeed-app-server.openshift-lightspeed.svc
jobLabel: app.kubernetes.io/name
selector:
matchLabels:
app.kubernetes.io/component: application-server
app.kubernetes.io/managed-by: lightspeed-operator
app.kubernetes.io/name: lightspeed-service-api
app.kubernetes.io/part-of: openshift-lightspeed
- apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app.kubernetes.io/component: metrics
app.kubernetes.io/created-by: lightspeed-operator
app.kubernetes.io/instance: controller-manager-metrics-monitor
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: servicemonitor
app.kubernetes.io/part-of: lightspeed-operator
control-plane: controller-manager
olm.managed: "true"
name: lightspeed-operator-controller-manager-metrics-monitor
namespace: openshift-lightspeed
spec:
endpoints:
- path: /metrics
port: metrics
scheme: https
tlsConfig:
caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
certFile: /etc/prometheus/secrets/metrics-client-certs/tls.crt
insecureSkipVerify: false
keyFile: /etc/prometheus/secrets/metrics-client-certs/tls.key
serverName: lightspeed-operator-controller-manager-service.openshift-lightspeed.svc
selector:
matchLabels:
control-plane: controller-manager
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Renovate tried to run on this repository, but found these problems.
Warning
Renovate failed to look up the following dependencies: Could not determine new digest for update (docker package registry.redhat.io/ubi9/go-toolset)
.
Files affected: Dockerfile
This repository currently has no open or pending branches.
Dockerfile
registry.redhat.io/ubi9/go-toolset sha256:f001ad1001a22fe5f6fc7d876fc172b01c1b7dcd6c498f83a07b425e24275a79
registry.access.redhat.com/ubi9/ubi-minimal sha256:a7d837b00520a32502ada85ae339e33510cdfdbc8d2ddf460cc838e12ec5fa5a
lightspeed-catalog.Dockerfile
.tekton/bundle-pull-request.yaml
quay.io/konflux-ci/tekton-catalog/task-init 0.2@sha256:83b7df553a736def52dd47bca2a3614c8fa2c88d112d691a4834289cf8c2abf5
quay.io/konflux-ci/tekton-catalog/task-git-clone 0.1@sha256:07b21ee2a46298d28edf561451f8550c3ae8024c546316765988d02c602827a4
quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies 0.1@sha256:80e4ec86cda6bbb2b4b6787ca3b306a5a80a51d8fd4a498a8464f0005151d7be
quay.io/konflux-ci/tekton-catalog/task-buildah 0.1@sha256:942c8b62ad30c614035fc3a6321f3389d0ee4075c2db36923e4a7412c482c8fa
quay.io/konflux-ci/tekton-catalog/task-source-build 0.1@sha256:bc4b2f86e4b0f01dc58ebf77f12357b1d73b78f8ddb989383e8d0cfab81b1731
quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check 0.4@sha256:0d61c9a7d3f7df8ae4989fa09cd387b2e88234876b2eca527a9b5b7e8ce78ad0
quay.io/konflux-ci/tekton-catalog/task-clair-scan 0.1@sha256:48a051b5d9cb93f722a9fa2eca0e1d28eb3a28118cfff74a6448b2ee956d95f9
quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks 0.1@sha256:8838d3e1628dbe61f4851b3640d2e3a9a3079d3ff3da955f4a3e4c2c95a013df
quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check 0.1@sha256:962fbf053705d38ed5c81ea6379eebee32b22fad4a7971183614610e33e8e0f9
quay.io/konflux-ci/tekton-catalog/task-clamav-scan 0.1@sha256:b7f9f87a275d47e8076ee759145865575364c2eb44a834cd111cb373a10da0c2
quay.io/konflux-ci/tekton-catalog/task-sbom-json-check 0.1@sha256:acc9cb8a714f33c0e48d6ca219b6bd0191f09cdd767af4ef3a35d0a5cac53b5d
quay.io/konflux-ci/tekton-catalog/task-apply-tags 0.1@sha256:175162b0a1c55e911d0d25ddef97e90932b5043f0b523cf83ed4824363840d74
quay.io/konflux-ci/tekton-catalog/task-show-sbom 0.1@sha256:bb6de6584cc47524ac69d2fb0bc310e546696b707e4052a465966e2446e33a15
quay.io/konflux-ci/tekton-catalog/task-summary 0.2@sha256:fc1b0a4efc83c91cd4a24020daabb874b3f33a87c34cd157cda0b7e6d4b7779a
.tekton/bundle-push.yaml
quay.io/konflux-ci/tekton-catalog/task-init 0.2@sha256:83b7df553a736def52dd47bca2a3614c8fa2c88d112d691a4834289cf8c2abf5
quay.io/konflux-ci/tekton-catalog/task-git-clone 0.1@sha256:07b21ee2a46298d28edf561451f8550c3ae8024c546316765988d02c602827a4
quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies 0.1@sha256:80e4ec86cda6bbb2b4b6787ca3b306a5a80a51d8fd4a498a8464f0005151d7be
quay.io/konflux-ci/tekton-catalog/task-buildah 0.1@sha256:942c8b62ad30c614035fc3a6321f3389d0ee4075c2db36923e4a7412c482c8fa
quay.io/konflux-ci/tekton-catalog/task-source-build 0.1@sha256:bc4b2f86e4b0f01dc58ebf77f12357b1d73b78f8ddb989383e8d0cfab81b1731
quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check 0.4@sha256:0d61c9a7d3f7df8ae4989fa09cd387b2e88234876b2eca527a9b5b7e8ce78ad0
quay.io/konflux-ci/tekton-catalog/task-clair-scan 0.1@sha256:48a051b5d9cb93f722a9fa2eca0e1d28eb3a28118cfff74a6448b2ee956d95f9
quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks 0.1@sha256:8838d3e1628dbe61f4851b3640d2e3a9a3079d3ff3da955f4a3e4c2c95a013df
quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check 0.1@sha256:962fbf053705d38ed5c81ea6379eebee32b22fad4a7971183614610e33e8e0f9
quay.io/konflux-ci/tekton-catalog/task-clamav-scan 0.1@sha256:b7f9f87a275d47e8076ee759145865575364c2eb44a834cd111cb373a10da0c2
quay.io/konflux-ci/tekton-catalog/task-sbom-json-check 0.1@sha256:acc9cb8a714f33c0e48d6ca219b6bd0191f09cdd767af4ef3a35d0a5cac53b5d
quay.io/konflux-ci/tekton-catalog/task-apply-tags 0.1@sha256:175162b0a1c55e911d0d25ddef97e90932b5043f0b523cf83ed4824363840d74
quay.io/konflux-ci/tekton-catalog/task-show-sbom 0.1@sha256:bb6de6584cc47524ac69d2fb0bc310e546696b707e4052a465966e2446e33a15
quay.io/konflux-ci/tekton-catalog/task-summary 0.2@sha256:fc1b0a4efc83c91cd4a24020daabb874b3f33a87c34cd157cda0b7e6d4b7779a
.tekton/integration-tests/pipelines/lightspeed-integration-test-pipeline.yaml
.tekton/integration-tests/tasks/ols-e2e.yaml
.tekton/integration-tests/tasks/ols-installer.yaml
.tekton/lightspeed-operator-pull-request.yaml
quay.io/konflux-ci/tekton-catalog/task-init 0.2@sha256:83b7df553a736def52dd47bca2a3614c8fa2c88d112d691a4834289cf8c2abf5
quay.io/konflux-ci/tekton-catalog/task-git-clone 0.1@sha256:07b21ee2a46298d28edf561451f8550c3ae8024c546316765988d02c602827a4
quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies 0.1@sha256:80e4ec86cda6bbb2b4b6787ca3b306a5a80a51d8fd4a498a8464f0005151d7be
quay.io/konflux-ci/tekton-catalog/task-buildah 0.1@sha256:942c8b62ad30c614035fc3a6321f3389d0ee4075c2db36923e4a7412c482c8fa
quay.io/konflux-ci/tekton-catalog/task-source-build 0.1@sha256:bc4b2f86e4b0f01dc58ebf77f12357b1d73b78f8ddb989383e8d0cfab81b1731
quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check 0.4@sha256:0d61c9a7d3f7df8ae4989fa09cd387b2e88234876b2eca527a9b5b7e8ce78ad0
quay.io/konflux-ci/tekton-catalog/task-clair-scan 0.1@sha256:48a051b5d9cb93f722a9fa2eca0e1d28eb3a28118cfff74a6448b2ee956d95f9
quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks 0.1@sha256:8838d3e1628dbe61f4851b3640d2e3a9a3079d3ff3da955f4a3e4c2c95a013df
quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check 0.1@sha256:962fbf053705d38ed5c81ea6379eebee32b22fad4a7971183614610e33e8e0f9
quay.io/konflux-ci/tekton-catalog/task-clamav-scan 0.1@sha256:b7f9f87a275d47e8076ee759145865575364c2eb44a834cd111cb373a10da0c2
quay.io/konflux-ci/tekton-catalog/task-sbom-json-check 0.1@sha256:acc9cb8a714f33c0e48d6ca219b6bd0191f09cdd767af4ef3a35d0a5cac53b5d
quay.io/konflux-ci/tekton-catalog/task-apply-tags 0.1@sha256:175162b0a1c55e911d0d25ddef97e90932b5043f0b523cf83ed4824363840d74
quay.io/konflux-ci/tekton-catalog/task-show-sbom 0.1@sha256:bb6de6584cc47524ac69d2fb0bc310e546696b707e4052a465966e2446e33a15
quay.io/konflux-ci/tekton-catalog/task-summary 0.2@sha256:fc1b0a4efc83c91cd4a24020daabb874b3f33a87c34cd157cda0b7e6d4b7779a
.tekton/lightspeed-operator-push.yaml
quay.io/konflux-ci/tekton-catalog/task-init 0.2@sha256:83b7df553a736def52dd47bca2a3614c8fa2c88d112d691a4834289cf8c2abf5
quay.io/konflux-ci/tekton-catalog/task-git-clone 0.1@sha256:07b21ee2a46298d28edf561451f8550c3ae8024c546316765988d02c602827a4
quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies 0.1@sha256:80e4ec86cda6bbb2b4b6787ca3b306a5a80a51d8fd4a498a8464f0005151d7be
quay.io/konflux-ci/tekton-catalog/task-buildah 0.1@sha256:942c8b62ad30c614035fc3a6321f3389d0ee4075c2db36923e4a7412c482c8fa
quay.io/konflux-ci/tekton-catalog/task-source-build 0.1@sha256:bc4b2f86e4b0f01dc58ebf77f12357b1d73b78f8ddb989383e8d0cfab81b1731
quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check 0.4@sha256:0d61c9a7d3f7df8ae4989fa09cd387b2e88234876b2eca527a9b5b7e8ce78ad0
quay.io/konflux-ci/tekton-catalog/task-clair-scan 0.1@sha256:48a051b5d9cb93f722a9fa2eca0e1d28eb3a28118cfff74a6448b2ee956d95f9
quay.io/konflux-ci/tekton-catalog/task-ecosystem-cert-preflight-checks 0.1@sha256:8838d3e1628dbe61f4851b3640d2e3a9a3079d3ff3da955f4a3e4c2c95a013df
quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check 0.1@sha256:962fbf053705d38ed5c81ea6379eebee32b22fad4a7971183614610e33e8e0f9
quay.io/konflux-ci/tekton-catalog/task-clamav-scan 0.1@sha256:b7f9f87a275d47e8076ee759145865575364c2eb44a834cd111cb373a10da0c2
quay.io/konflux-ci/tekton-catalog/task-sbom-json-check 0.1@sha256:acc9cb8a714f33c0e48d6ca219b6bd0191f09cdd767af4ef3a35d0a5cac53b5d
quay.io/konflux-ci/tekton-catalog/task-apply-tags 0.1@sha256:175162b0a1c55e911d0d25ddef97e90932b5043f0b523cf83ed4824363840d74
quay.io/konflux-ci/tekton-catalog/task-show-sbom 0.1@sha256:bb6de6584cc47524ac69d2fb0bc310e546696b707e4052a465966e2446e33a15
quay.io/konflux-ci/tekton-catalog/task-summary 0.2@sha256:fc1b0a4efc83c91cd4a24020daabb874b3f33a87c34cd157cda0b7e6d4b7779a
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: config/**/*.yaml
Error type: Invalid regular expression (re2): config/**/*.yaml
Message: bad repetition operator: **
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.