Skip to content

Commit

Permalink
update consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Oct 26, 2023
1 parent 7c18105 commit ad1c391
Show file tree
Hide file tree
Showing 31 changed files with 295 additions and 1,366 deletions.
13 changes: 0 additions & 13 deletions aws/dome/consumer/connector/blockchain-connector-core/Chart.yaml

This file was deleted.

75 changes: 75 additions & 0 deletions aws/dome/consumer/connector/blockchain-connector-core/cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: dome-consumer-blockchain-connector-core
data:
application.yml: |
dlt-adapter:
domain: http://dome-consumer-dlt-adapter:8080
blockchain:
rpcAddress: https://red-t.alastria.io/v0/9461d9f4292b41230527d57ee90652a6
userEthereumAddress: "0xb794f5ea0ba39494ce839613fffba74279579268"
subscription:
active: false
notificationEndpoint: http://dome-consumer-blockchain-connector-core:8080/notifications/blockchain-node
event-type: "catalog"
broker:
externalDomain: https://orion.dome-consumer.fiware.dev
internalDomain: http://dome-consumer-orion-ld:1026
ngsi-subscription:
notificationEndpoint: http://dome-consumer-blockchain-connector-core:8080/notifications/orion-ld
entityTypes: >
product-offering,
product-order
orion-ld-adapter:
domain: http://dome-consumer-orion-ld-adapter:8080
spring:
application:
name: Blockchain Connector Core
datasource:
url: jdbc:h2:mem:dbtest
driver-class-name: org.h2.Driver
username: in2admin
password: in2pass
jpa:
database-platform: org.hibernate.dialect.H2Dialect
open-in-view: false
properties:
jakarta.persistence.sharedCache.mode: UNSPECIFIED
hibernate:
ddl-auto: update
show-sql: true
generate-ddl: true
security:
user:
name: in2test
password: in2pass
logging:
level:
ROOT: INFO
es.in2: DEBUG
management:
endpoints:
enabled-by-default: false
web:
exposure:
include: health, info, loggers, metrics
base-path: /
path-mapping:
health: health
info: info
loggers: loggers
metrics: metrics
endpoint:
health:
enabled: true
show-details: always
loggers:
enabled: true
metrics:
enabled: true
server:
port: 8080
app:
openapi:
dev-url: http://localhost:8080
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dome-consumer-blockchain-connector-core
labels:
app.kubernetes.io/instance: dome-consumer-blockchain-connector-core
app.kubernetes.io/name: dome-consumer-blockchain-connector-core
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/instance: dome-consumer-blockchain-connector-core
app.kubernetes.io/name: dome-consumer-blockchain-connector-core
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app.kubernetes.io/instance: dome-consumer-blockchain-connector-core
app.kubernetes.io/name: dome-consumer-blockchain-connector-core
spec:
containers:
- image: quay.io/wi_stefan/blockchain-connector-core:0.0.1
imagePullPolicy: IfNotPresent
name: blockchain-connector
env:
- name: SPRING_CONFIG_NAME
value: marketplace
- name: SPRING_CONFIG_LOCATION
value: /config/application.yml
- name: SPRING_PROFILES_ACTIVE
value: marketplace
ports:
- containerPort: 8080
name: http
protocol: TCP
volumeMounts:
- mountPath: /config/
name: custom-config
volumes:
- configMap:
name: dome-consumer-blockchain-connector-core
name: custom-config
14 changes: 14 additions & 0 deletions aws/dome/consumer/connector/blockchain-connector-core/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: dome-consumer-blockchain-connector-core
spec:
type: ClusterIP
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
selector:
app.kubernetes.io/instance: dome-consumer-blockchain-connector-core
app.kubernetes.io/name: dome-consumer-blockchain-connector-core

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit ad1c391

Please sign in to comment.