diff --git a/aws/apps/deployai/marketplace/access-node.yaml b/aws/apps/deployai/marketplace/access-node.yaml new file mode 100644 index 00000000..1e238359 --- /dev/null +++ b/aws/apps/deployai/marketplace/access-node.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: access-node + namespace: argocd +spec: + project: default + source: + repoURL: https://github.com/FIWARE-Ops/fiware-gitops + targetRevision: HEAD + path: aws/deployai/marketplace/access-node + destination: + server: https://kubernetes.default.svc + namespace: deployai + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/aws/deployai/marketplace/access-node/Chart.yaml b/aws/deployai/marketplace/access-node/Chart.yaml new file mode 100644 index 00000000..9ee5fecf --- /dev/null +++ b/aws/deployai/marketplace/access-node/Chart.yaml @@ -0,0 +1,11 @@ +apiVersion: v2 +name: access-node +description: Chart holder for ArgoCD +type: application +version: 0.1.0 +appVersion: 0.1.0 +dependencies: + - name: access-node + condition: access-node.enabled + repository: https://dome-marketplace.github.io/access-node + version: 0.1.4 diff --git a/aws/deployai/marketplace/access-node/values.yaml b/aws/deployai/marketplace/access-node/values.yaml new file mode 100644 index 00000000..be5236fa --- /dev/null +++ b/aws/deployai/marketplace/access-node/values.yaml @@ -0,0 +1,170 @@ +access-node: + desmos: + # -- should the desmos-blockchain-connector be enabled + enabled: false + + dlt-adapter: + # -- should the dlt-adapter be enabled + enabled: false + + # postgres for desmos only + postgresql: + # -- should the postgresql deployment be enabled + enabled: true + # -- overrides the generated name, provides stable service names - this should be avoided if multiple instances are available in the same namespace + fullnameOverride: desmos-postgres + # -- overrides the generated name, provides stable service names - this should be avoided if multiple instances are available in the same namespace + nameOverride: desmos-postgres + ## auth configuration for the database + auth: + # -- username to be used + username: postgres + # -- should the default postgres user be enabled + enablePostgresUser: true + # -- existing secret + existingSecret: postgres-secret + secretKeys: + adminPasswordKey: postgres-root-password + userPasswordKey: postgres-password + ## configuration of the postgres primary replica + primary: + persistence: + size: 2Gi + ## provide db initialization + initdb: + ## provide scripts for initialization + scripts: + # -- create the database as expected by the blockchain-connector + create.sh: | + psql postgresql://postgres:${POSTGRES_POSTGRES_PASSWORD}@localhost:5432 -c "CREATE DATABASE desmos;" + + scorpio: + # -- should scorpio be enabled + enabled: true + ## configuration of the image to be used + image: + # -- repository to be used - resource friendly all-in-one-runner without kafka + repository: scorpiobroker/all-in-one-runner + # -- tag of the image to be used - latest java image without kafka + tag: java-4.1.10 + ## configuration of the database to be used by broker + db: + # -- host of the db + dbhost: postgis-marketplace + # -- username to be used + user: postgres + # -- existing secret to retrieve the db password + existingSecret: + # -- should an existing secret be used + enabled: true + # -- name of the secret + name: postgres-secret + # -- key to retrieve the password from + key: postgres-root-password + kafka: + # -- Enable usage of Kafka + enabled: true + # -- Bus host for Kafka + bushost: kafka-marketplace + + ## configuration of the readiness probe + readinessProbe: + # -- path to be used for the readiness probe, older versions used /actuator/health + path: /q/health + ## configuration of the liveness probe + livenessProbe: + # -- path to be used for the readiness probe, older versions used /actuator/health + path: /q/health + # -- overrides the generated name, provides stable service names - this should be avoided if multiple instances are available in the same namespace + fullnameOverride: scorpio-marketplace + ## configuration to be used for the service offered by scorpio + service: + # -- ClusterIP is the recommended type for most clusters + type: ClusterIP + + ## configuration for kafka in case its used by scorpio - see https://github.com/bitnami/charts/tree/main/bitnami/kafka + kafka: + # -- should kafka be enabled? + enabled: false + + ## configuration of postgis to be used for scorpio - see https://github.com/bitnami/charts/tree/main/bitnami/postgresql for details + postgis: + # -- should postgis be enabled + enabled: false + + tm-forum-api: + fullnameOverride: tm-forum-api + nameOverride: tm-forum-api + # -- should tm-forum-api be enabled + enabled: true + ## configuration to be used by every api-deployment if nothing specific is provided. + defaultConfig: + # -- configuration to be used for the image of the containers + image: + # -- current latest tag + tag: "0.20.1" + # -- ngsi-ld broker connection information + ngsiLd: + # -- address of the broker + url: http://scorpio-marketplace:9090 + # -- default context to be used when contacting the context broker + contextUrl: https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld + # -- host that the tm-forum api can be reached at, when the proxy is enabled it should be set to that address. If not, set the host for each api individually + serverHost: http://localhost:8080 + ## configuration for the api proxy, to serve all apis through one kubernetes service + apiProxy: + # -- the proxy must be enabled + enabled: true + + apis: + - name: party-catalog + image: tmforum-party-catalog + basePath: / + + - name: customer-bill-management + image: tmforum-customer-bill-management + basePath: / + + - name: customer-management + image: tmforum-customer-management + basePath: / + + - name: product-catalog + image: tmforum-product-catalog + basePath: / + + - name: product-inventory + image: tmforum-product-inventory + basePath: / + + - name: product-ordering-management + image: tmforum-product-ordering-management + basePath: / + + - name: resource-catalog + image: tmforum-resource-catalog + basePath: / + + - name: resource-function-activation + image: tmforum-resource-function-activation + basePath: / + + - name: resource-inventory + image: tmforum-resource-inventory + basePath: / + + - name: service-catalog + image: tmforum-service-catalog + basePath: / + + - name: account + image: tmforum-account + basePath: / + + - name: agreement + image: tmforum-agreement + basePath: / + + - name: usage-management + image: tmforum-usage-management + basePath: / diff --git a/aws/deployai/marketplace/postgis/values.yaml b/aws/deployai/marketplace/postgis/values.yaml index 6d5ee0a0..09880f23 100644 --- a/aws/deployai/marketplace/postgis/values.yaml +++ b/aws/deployai/marketplace/postgis/values.yaml @@ -1,6 +1,6 @@ postgresql: - fullnameOverride: postgis + fullnameOverride: postgis-marketplace auth: username: scorpio diff --git a/aws/deployai/marketplace/scorpio/deployment.yaml b/aws/deployai/marketplace/scorpio/deployment.yaml deleted file mode 100644 index 09f433b1..00000000 --- a/aws/deployai/marketplace/scorpio/deployment.yaml +++ /dev/null @@ -1,48 +0,0 @@ -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-root-password - - name: MYSETTINGS_POSTGRES_USERNAME - value: postgres - ports: - - name: http - containerPort: 9090 - protocol: TCP diff --git a/aws/deployai/marketplace/scorpio/service.yaml b/aws/deployai/marketplace/scorpio/service.yaml deleted file mode 100644 index d191a162..00000000 --- a/aws/deployai/marketplace/scorpio/service.yaml +++ /dev/null @@ -1,18 +0,0 @@ -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 diff --git a/aws/deployai/marketplace/tm-forum-api/Chart.yaml b/aws/deployai/marketplace/tm-forum-api/Chart.yaml deleted file mode 100644 index 05727d71..00000000 --- a/aws/deployai/marketplace/tm-forum-api/Chart.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v2 -name: tm-forum-api -description: Chart holder for argo-cd - -type: application -version: 0.1.0 -appVersion: "0.4.1" - -dependencies: -- name: tm-forum-api - version: 0.2.2 - repository: https://fiware.github.io/helm-charts diff --git a/aws/deployai/marketplace/tm-forum-api/values.yaml b/aws/deployai/marketplace/tm-forum-api/values.yaml deleted file mode 100644 index 2dc80dc6..00000000 --- a/aws/deployai/marketplace/tm-forum-api/values.yaml +++ /dev/null @@ -1,110 +0,0 @@ -tm-forum-api: - ## openshift specific route definition. Will not work on plain k8s - route: - ## -- should the deployment create openshift routes - enabled: false - - apiProxy: - enabled: false - - - ## configuration to be used by every api-deployment if nothing specific is provided. - defaultConfig: - - # -- configuration to be used for the image of the container - image: - # -- repository to get the container from - repository: quay.io/fiware - # -- tag to be used, most of the time the apis will use the same version - tag: 0.15.0 - # -- pull policy to be used - pullPolicy: Always - - # -- ngsi-ld broker connection information - ngsiLd: - # -- timeout for requests ot the broker - readTimeout: 30s - # -- base path for the ngsi-ld api - path: ngsi-ld/v1 - # -- address of the broker - url: http://scorpio-marketplace:1026 - - logLevel: DEBUG - contextUrl: https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld - - additionalEnvVars: - - name: GENERAL_NGSILDORQUERYVALUE - value: "," - - name: GENERAL_NGSILDORQUERYKEY - value: "," - - name: GENERAL_ENCLOSEQUERY - value: "false" - - # -- list of apis to be deployed - # -- every api needs to define a name and image. Basepath is required when routes or ingress will be enabled. Beside that, they can overwrite the default-config by using the same keys. - # -- be aware: when you change the image repositrory or the tag for an api, you have to provide both values for the changes to take effect - apis: - - name: party-catalog - image: tmforum-party-catalog - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF632-Party-v4.0.0.swagger.json - - - name: customer-bill-management - image: tmforum-customer-bill-management - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF678-CustomerBill-v4.0.0.swagger.json - - - name: customer-management - image: tmforum-customer-management - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF629-Customer-v4.0.0.swagger.json - - - name: product-catalog - image: tmforum-product-catalog - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.1.0/swagger/TMF620-ProductCatalog-v4.1.0.swagger.json - - - name: product-inventory - image: tmforum-product-inventory - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF637-ProductInventory-v4.0.0.swagger.json - - - name: product-ordering-management - image: tmforum-product-ordering-management - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF622-ProductOrder-v4.0.0.swagger.json - - - name: resource-catalog - image: tmforum-resource-catalog - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.1.0/swagger/TMF634-ResourceCatalog-v4.0.0.swagger.json - - - name: resource-function-activation - image: tmforum-resource-function-activation - basePath: / - specUrl: https://raw.githubusercontent.com/wistefan/TMF664_ResourceFunctionActivationConfiguration/master/TMF664-ResourceFunctionActivation-v4.0.0.swagger.json - - - name: resource-inventory - image: tmforum-resource-inventory - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF639-ResourceInventory-v4.0.0.swagger.json - - - name: service-catalog - image: tmforum-service-catalog - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF633-ServiceCatalog-v4.0.0.swagger.json - - - name: account - image: tmforum-account - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF666-Account-v4.0.0.swagger.json - - - name: agreement - image: tmforum-agreement - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF651-Agreement-v4.0.0.swagger.json - - - name: usage-management - image: tmforum-usage-management - basePath: / - specUrl: https://tmf-open-api-table-documents.s3.eu-west-1.amazonaws.com/OpenApiTable/4.0.0/swagger/TMF635-UsageManagement-v4.0.0.swagger.json