add lightspeed to internal cluster
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
---
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: credentials # This is the secret name
|
||||
namespace: openshift-lightspeed
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "4"
|
||||
spec:
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: doppler-cluster
|
||||
refreshInterval: "1h"
|
||||
data:
|
||||
- secretKey: apitoken
|
||||
remoteRef:
|
||||
key: OPENAI_TOKEN
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
commonAnnotations:
|
||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||
|
||||
resources:
|
||||
# Operator deployment
|
||||
- namespace.yaml
|
||||
- operatorgroup.yaml
|
||||
- subscription.yaml
|
||||
- externalsecrets.yaml
|
||||
# Deploy cluster resources
|
||||
- olsconfig.yaml
|
||||
15
cluster/openshift-lightspeed-operator/base/namespace.yaml
Normal file
15
cluster/openshift-lightspeed-operator/base/namespace.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
labels:
|
||||
kubernetes.io/metadata.name: openshift-lightspeed
|
||||
name: openshift-lightspeed
|
||||
argocd.argoproj.io/managed-by: openshift-gitops-operator
|
||||
openshift.io/cluster-monitoring: 'true'
|
||||
name: openshift-lightspeed
|
||||
spec:
|
||||
finalizers:
|
||||
- kubernetes
|
||||
20
cluster/openshift-lightspeed-operator/base/olsconfig.yaml
Normal file
20
cluster/openshift-lightspeed-operator/base/olsconfig.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
apiVersion: ols.openshift.io/v1alpha1
|
||||
kind: OLSConfig
|
||||
metadata:
|
||||
name: cluster
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "5"
|
||||
spec:
|
||||
llm:
|
||||
providers:
|
||||
- name: myOpenai
|
||||
type: openai
|
||||
credentialsSecretRef:
|
||||
name: credentials
|
||||
url: https://api.openai.com/v1
|
||||
models:
|
||||
- name: gpt-3.5-turbo
|
||||
ols:
|
||||
defaultModel: gpt-3.5-turbo
|
||||
defaultProvider: myOpenai
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: operators.coreos.com/v1
|
||||
kind: OperatorGroup
|
||||
metadata:
|
||||
name: openshift-lightspeed-operator
|
||||
namespace: openshift-lightspeed
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
14
cluster/openshift-lightspeed-operator/base/subscription.yaml
Normal file
14
cluster/openshift-lightspeed-operator/base/subscription.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: operators.coreos.com/v1alpha1
|
||||
kind: Subscription
|
||||
metadata:
|
||||
name: lightspeed-operator
|
||||
namespace: openshift-lightspeed
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "3"
|
||||
spec:
|
||||
channel: stable
|
||||
installPlanApproval: Automatic #Manual
|
||||
name: lightspeed-operator
|
||||
source: redhat-operators
|
||||
sourceNamespace: openshift-marketplace
|
||||
Reference in New Issue
Block a user