Skip to content

Commit

Permalink
Add kafka and scorpio for DeployAI marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Wendland committed Jul 24, 2024
1 parent 18f9a0b commit 530b173
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 0 deletions.
18 changes: 18 additions & 0 deletions aws/apps/deployai/marketplace/kafka.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions aws/apps/deployai/marketplace/scorpio.yaml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions aws/deployai/marketplace/kafka/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 24 additions & 0 deletions aws/deployai/marketplace/kafka/values.yaml
Original file line number Diff line number Diff line change
@@ -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
48 changes: 48 additions & 0 deletions aws/deployai/marketplace/scorpio/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions aws/deployai/marketplace/scorpio/service.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 530b173

Please sign in to comment.