From 530b173fe7bca57d2c6b1d2061cf6fa14af293bb Mon Sep 17 00:00:00 2001 From: Dennis Wendland Date: Wed, 24 Jul 2024 16:32:49 +0200 Subject: [PATCH] Add kafka and scorpio for DeployAI marketplace --- aws/apps/deployai/marketplace/kafka.yaml | 18 +++++++ aws/apps/deployai/marketplace/scorpio.yaml | 18 +++++++ aws/deployai/marketplace/kafka/Chart.yaml | 12 +++++ aws/deployai/marketplace/kafka/values.yaml | 24 ++++++++++ .../marketplace/scorpio/deployment.yaml | 48 +++++++++++++++++++ aws/deployai/marketplace/scorpio/service.yaml | 18 +++++++ 6 files changed, 138 insertions(+) create mode 100644 aws/apps/deployai/marketplace/kafka.yaml create mode 100644 aws/apps/deployai/marketplace/scorpio.yaml create mode 100644 aws/deployai/marketplace/kafka/Chart.yaml create mode 100644 aws/deployai/marketplace/kafka/values.yaml create mode 100644 aws/deployai/marketplace/scorpio/deployment.yaml create mode 100644 aws/deployai/marketplace/scorpio/service.yaml diff --git a/aws/apps/deployai/marketplace/kafka.yaml b/aws/apps/deployai/marketplace/kafka.yaml new file mode 100644 index 00000000..19fa8d35 --- /dev/null +++ b/aws/apps/deployai/marketplace/kafka.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: kafka-marketplace + namespace: argocd +spec: + destination: + namespace: deployai + server: https://kubernetes.default.svc + project: default + source: + path: aws/deployai/marketplace/kafka + repoURL: https://github.com/FIWARE-Ops/fiware-gitops + targetRevision: HEAD + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/aws/apps/deployai/marketplace/scorpio.yaml b/aws/apps/deployai/marketplace/scorpio.yaml new file mode 100644 index 00000000..4a07a435 --- /dev/null +++ b/aws/apps/deployai/marketplace/scorpio.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: scorpio-marketplace + namespace: argocd +spec: + destination: + namespace: deployai + server: https://kubernetes.default.svc + project: default + source: + path: aws/deployai/scorpio/scorpio + repoURL: https://github.com/FIWARE-Ops/fiware-gitops + targetRevision: HEAD + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/aws/deployai/marketplace/kafka/Chart.yaml b/aws/deployai/marketplace/kafka/Chart.yaml new file mode 100644 index 00000000..ae4ecc4d --- /dev/null +++ b/aws/deployai/marketplace/kafka/Chart.yaml @@ -0,0 +1,12 @@ +apiVersion: v2 +name: kafka-scorpio +description: Chart holder for argo-cd + +type: application +version: 26.0.0 +appVersion: "3.6.0" + +dependencies: +- name: kafka + version: 26.0.0 + repository: oci://registry-1.docker.io/bitnamicharts diff --git a/aws/deployai/marketplace/kafka/values.yaml b/aws/deployai/marketplace/kafka/values.yaml new file mode 100644 index 00000000..42eb0eb9 --- /dev/null +++ b/aws/deployai/marketplace/kafka/values.yaml @@ -0,0 +1,24 @@ +kafka: + controller: + podSecurityContext: + enabled: false + containerSecurityContext: + enabled: false + persistence: + size: 1Gi + broker: + podSecurityContext: + enabled: false + containerSecurityContext: + enabled: false + persistence: + size: 1Gi + listeners: + client: + protocol: PLAINTEXT + controller: + protocol: PLAINTEXT + interbroker: + protocol: PLAINTEXT + external: + protocol: PLAINTEXT diff --git a/aws/deployai/marketplace/scorpio/deployment.yaml b/aws/deployai/marketplace/scorpio/deployment.yaml new file mode 100644 index 00000000..babfa708 --- /dev/null +++ b/aws/deployai/marketplace/scorpio/deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: scorpio-marketplace + labels: + app.kubernetes.io/name: scorpio-marketplace + app.kubernetes.io/instance: scorpio-marketplace +spec: + replicas: 1 + revisionHistoryLimit: 3 + strategy: + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 + type: RollingUpdate + selector: + matchLabels: + app.kubernetes.io/name: scorpio-marketplace + app.kubernetes.io/instance: scorpio-marketplace + template: + metadata: + labels: + app.kubernetes.io/name: scorpio-marketplace + app.kubernetes.io/instance: scorpio-marketplace + spec: + serviceAccountName: default + containers: + - name: scorpio + imagePullPolicy: IfNotPresent + image: "scorpiobroker/all-in-one-runner:java-kafka-4.1.8" + env: + - name: DBHOST + value: postgis + - name: BUSHOST + value: kafka-marketplace + - name: QUARKUS_LOG_LEVEL + value: DEBUG + - name: MYSETTINGS_POSTGRES_PASSWORD + valueFrom: + secretKeyRef: + name: postgres-secret + key: postgres-password + - name: MYSETTINGS_POSTGRES_USERNAME + value: scorpio + ports: + - name: http + containerPort: 9090 + protocol: TCP diff --git a/aws/deployai/marketplace/scorpio/service.yaml b/aws/deployai/marketplace/scorpio/service.yaml new file mode 100644 index 00000000..d191a162 --- /dev/null +++ b/aws/deployai/marketplace/scorpio/service.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Service +metadata: + name: scorpio-marketplace + labels: + app.kubernetes.io/name: scorpio-marketplace + app.kubernetes.io/instance: scorpio-marketplace +spec: + type: ClusterIP + ports: + # same as orion, makes other config easier + - port: 1026 + targetPort: 9090 + protocol: TCP + name: scorpio-marketplace + selector: + app.kubernetes.io/name: scorpio-marketplace + app.kubernetes.io/instance: scorpio-marketplace