diff --git a/bootstrap/applications/shared-database-app.yaml b/bootstrap/applications/shared-database-app.yaml deleted file mode 100644 index 70d4d781..00000000 --- a/bootstrap/applications/shared-database-app.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: shared-database-app - namespace: openshift-gitops - # finalizers: - # - resources-finalizer.argocd.argoproj.io - labels: - component: bootstrap - purpose: shared-database-app -spec: - destination: - server: 'https://kubernetes.default.svc' - project: default - source: - ## remember to change this to the gitea addresses - path: bootstrap/shared-database - repoURL: >- - https://github.com/rh-aiservices-bu/insurance-claim-processing.git - targetRevision: dev - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - RespectIgnoreDifferences=true \ No newline at end of file diff --git a/bootstrap/applications/shared-llm-app.yaml b/bootstrap/applications/shared-llm-app.yaml deleted file mode 100644 index 4dba85dd..00000000 --- a/bootstrap/applications/shared-llm-app.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: shared-llm-app - namespace: openshift-gitops - # finalizers: - # - resources-finalizer.argocd.argoproj.io - labels: - component: bootstrap - purpose: shared-llm-app -spec: - destination: - server: 'https://kubernetes.default.svc' - project: default - source: - ## remember to change this to the gitea addresses - path: bootstrap/shared-llm - repoURL: >- - https://github.com/rh-aiservices-bu/insurance-claim-processing.git - targetRevision: dev - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - RespectIgnoreDifferences=true \ No newline at end of file diff --git a/bootstrap/shared-database/deployment.yaml b/bootstrap/shared-database/deployment.yaml deleted file mode 100644 index c359be16..00000000 --- a/bootstrap/shared-database/deployment.yaml +++ /dev/null @@ -1,76 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - namespace: ic-shared-db - name: ic-shared-db - annotations: - argocd.argoproj.io/sync-wave: "1" -spec: - selector: - matchLabels: - app: ic-shared-db - replicas: 1 - template: - metadata: - labels: - app: ic-shared-db - spec: - containers: - - name: postgresql - image: registry.redhat.io/rhel9/postgresql-13:latest - resources: - limits: - memory: 512Mi - readinessProbe: - exec: - command: - - /usr/libexec/check-container - initialDelaySeconds: 5 - timeoutSeconds: 1 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - livenessProbe: - exec: - command: - - /usr/libexec/check-container - - '--live' - initialDelaySeconds: 120 - timeoutSeconds: 10 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - env: - - name: POSTGRESQL_USER - valueFrom: - secretKeyRef: - name: claimdb - key: database-user - - name: POSTGRESQL_PASSWORD - valueFrom: - secretKeyRef: - name: claimdb - key: database-password - - name: POSTGRESQL_DATABASE - valueFrom: - secretKeyRef: - name: claimdb - key: database-name - securityContext: - capabilities: {} - privileged: false - ports: - - containerPort: 5432 - protocol: TCP - imagePullPolicy: IfNotPresent - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - volumeMounts: - - name: claimdb-data - mountPath: /var/lib/pgsql/data - volumes: - - name: claimdb-data - persistentVolumeClaim: - claimName: claimdb - strategy: - type: Recreate diff --git a/bootstrap/shared-database/kustomization.yaml b/bootstrap/shared-database/kustomization.yaml deleted file mode 100644 index 0bacb2ee..00000000 --- a/bootstrap/shared-database/kustomization.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -namespace: ic-shared-db - -commonLabels: - component: ic-shared-db - -resources: -# wave 0 -- namespace.yaml -# wave 1 -- pvc.yaml -- secret.yaml -- deployment.yaml -- service.yaml -# wave 2 diff --git a/bootstrap/shared-database/namespace.yaml b/bootstrap/shared-database/namespace.yaml deleted file mode 100644 index f57dfb18..00000000 --- a/bootstrap/shared-database/namespace.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: v1 -kind: Namespace -metadata: - name: ic-shared-db - labels: - app: ic-shared-db - argocd.argoproj.io/managed-by: openshift-gitops - annotations: - openshift.io/display-name: "Shared PostgreSQL Database" - argocd.argoproj.io/sync-wave: "0" diff --git a/bootstrap/shared-database/pvc.yaml b/bootstrap/shared-database/pvc.yaml deleted file mode 100644 index 77f8c1f8..00000000 --- a/bootstrap/shared-database/pvc.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: claimdb - namespace: ic-shared-db - labels: - app: ic-shared-db - annotations: - argocd.argoproj.io/sync-wave: "1" -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi diff --git a/bootstrap/shared-database/secret.yaml b/bootstrap/shared-database/secret.yaml deleted file mode 100644 index d663dd1d..00000000 --- a/bootstrap/shared-database/secret.yaml +++ /dev/null @@ -1,14 +0,0 @@ -kind: Secret -apiVersion: v1 -metadata: - name: claimdb - namespace: ic-shared-db - labels: - app: ic-shared-db - annotations: - argocd.argoproj.io/sync-wave: "1" -stringData: - database-name: claimdb - database-password: claimdb - database-user: claimdb -type: Opaque \ No newline at end of file diff --git a/bootstrap/shared-database/service.yaml b/bootstrap/shared-database/service.yaml deleted file mode 100644 index da668a7d..00000000 --- a/bootstrap/shared-database/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: claimdb - namespace: ic-shared-db - labels: - app: ic-shared-db - annotations: - argocd.argoproj.io/sync-wave: "1" -spec: - ports: - - name: postgresql - protocol: TCP - port: 5432 - targetPort: 5432 - selector: - app: ic-shared-db - sessionAffinity: None - type: ClusterIP diff --git a/bootstrap/shared-llm/deployment.yaml b/bootstrap/shared-llm/deployment.yaml deleted file mode 100644 index fdc62539..00000000 --- a/bootstrap/shared-llm/deployment.yaml +++ /dev/null @@ -1,110 +0,0 @@ -kind: Deployment -apiVersion: apps/v1 -metadata: - name: llm - labels: - app: llm -spec: - replicas: 1 - selector: - matchLabels: - app: llm - template: - metadata: - creationTimestamp: null - labels: - app: llm - spec: - restartPolicy: Always - schedulerName: default-scheduler - affinity: {} - terminationGracePeriodSeconds: 120 - securityContext: {} - containers: - - resources: - limits: - cpu: '8' - memory: 24Gi - nvidia.com/gpu: '1' - requests: - cpu: '6' - readinessProbe: - httpGet: - path: /health - port: http - scheme: HTTP - timeoutSeconds: 5 - periodSeconds: 30 - successThreshold: 1 - failureThreshold: 3 - terminationMessagePath: /dev/termination-log - name: server - livenessProbe: - httpGet: - path: /health - port: http - scheme: HTTP - timeoutSeconds: 8 - periodSeconds: 100 - successThreshold: 1 - failureThreshold: 3 - env: - - name: MODEL_ID - value: mistralai/Mistral-7B-Instruct-v0.2 - - name: MAX_INPUT_LENGTH - value: '4096' - - name: MAX_TOTAL_TOKENS - value: '8192' - - name: HUGGINGFACE_HUB_CACHE - value: /models-cache - - name: PORT - value: '3000' - - name: HOSTNAME - value: '0.0.0.0' - securityContext: - capabilities: - drop: - - ALL - runAsNonRoot: true - allowPrivilegeEscalation: false - seccompProfile: - type: RuntimeDefault - ports: - - name: http - containerPort: 3000 - protocol: TCP - imagePullPolicy: IfNotPresent - startupProbe: - httpGet: - path: /health - port: http - scheme: HTTP - timeoutSeconds: 1 - periodSeconds: 30 - successThreshold: 1 - failureThreshold: 24 - initialDelaySeconds: 60 - volumeMounts: - - name: models-cache - mountPath: /models-cache - - name: shm - mountPath: /dev/shm - terminationMessagePolicy: File - image: 'ghcr.io/huggingface/text-generation-inference:1.3' - volumes: - - name: models-cache - persistentVolumeClaim: - claimName: models-cache - - name: shm - emptyDir: - medium: Memory - sizeLimit: 1Gi - dnsPolicy: ClusterFirst - tolerations: - - key: nvidia.com/gpu - operator: Exists - effect: NoSchedule - strategy: - type: Recreate - revisionHistoryLimit: 10 - progressDeadlineSeconds: 600 \ No newline at end of file diff --git a/bootstrap/shared-llm/fix-odf-config.yaml b/bootstrap/shared-llm/fix-odf-config.yaml deleted file mode 100644 index c2e6284a..00000000 --- a/bootstrap/shared-llm/fix-odf-config.yaml +++ /dev/null @@ -1,10 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - name: rook-ceph-operator-config - namespace: openshift-storage -data: - CSI_PLUGIN_TOLERATIONS: | - - key: nvidia.com/gpu - operator: Exists - effect: NoSchedule diff --git a/bootstrap/shared-llm/kustomization.yaml b/bootstrap/shared-llm/kustomization.yaml deleted file mode 100644 index 6065d393..00000000 --- a/bootstrap/shared-llm/kustomization.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -namespace: ic-shared-llm - -commonLabels: - component: ic-shared-llm - -resources: -# wave 0 -- namespace.yaml -- fix-odf-config.yaml -# wave 1 -- pvc.yaml -- deployment.yaml -- service.yaml -# wave 2 diff --git a/bootstrap/shared-llm/namespace.yaml b/bootstrap/shared-llm/namespace.yaml deleted file mode 100644 index 78efba5b..00000000 --- a/bootstrap/shared-llm/namespace.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: v1 -kind: Namespace -metadata: - name: ic-shared-llm - labels: - app: ic-shared-llm - argocd.argoproj.io/managed-by: openshift-gitops - annotations: - openshift.io/display-name: "Shared LLM" - argocd.argoproj.io/sync-wave: "0" diff --git a/bootstrap/shared-llm/pvc.yaml b/bootstrap/shared-llm/pvc.yaml deleted file mode 100644 index be8f7a86..00000000 --- a/bootstrap/shared-llm/pvc.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: models-cache - namespace: ic-shared-llm - labels: - app: ic-shared-llm - annotations: - argocd.argoproj.io/sync-wave: "0" -spec: - accessModes: - - ReadWriteMany - resources: - requests: - storage: 50Gi - storageClassName: ocs-storagecluster-cephfs - volumeMode: Filesystem \ No newline at end of file diff --git a/bootstrap/shared-llm/service.yaml b/bootstrap/shared-llm/service.yaml deleted file mode 100644 index 61bf36c1..00000000 --- a/bootstrap/shared-llm/service.yaml +++ /dev/null @@ -1,21 +0,0 @@ -kind: Service -apiVersion: v1 -metadata: - name: llm - namespace: ic-shared-llm - labels: - app: llm -spec: - clusterIP: None - ipFamilies: - - IPv4 - ports: - - name: http - protocol: TCP - port: 3000 - targetPort: http - type: ClusterIP - ipFamilyPolicy: SingleStack - sessionAffinity: None - selector: - app: llm \ No newline at end of file