From df283fd4fa8495e5a99dc1cf04975b2a897087f4 Mon Sep 17 00:00:00 2001 From: Paolo Patierno Date: Sun, 24 Dec 2023 13:50:17 +0100 Subject: [PATCH] Prepare for 0.1.0 release Signed-off-by: Paolo Patierno --- install/000-ServiceAccount.yaml | 6 ++++ install/010-Service.yaml | 18 ++++++++++++ install/020-ConfigMap.yaml | 32 +++++++++++++++++++++ install/030-Deployment.yaml | 41 +++++++++++++++++++++++++++ packaging/install/030-Deployment.yaml | 2 +- pom.xml | 2 +- release.version | 2 +- 7 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 install/000-ServiceAccount.yaml create mode 100644 install/010-Service.yaml create mode 100644 install/020-ConfigMap.yaml create mode 100644 install/030-Deployment.yaml diff --git a/install/000-ServiceAccount.yaml b/install/000-ServiceAccount.yaml new file mode 100644 index 0000000..64638c3 --- /dev/null +++ b/install/000-ServiceAccount.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: mqtt-bridge + labels: + app: mqtt-bridge diff --git a/install/010-Service.yaml b/install/010-Service.yaml new file mode 100644 index 0000000..8f3c17c --- /dev/null +++ b/install/010-Service.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Service +metadata: + name: mqtt-bridge + labels: + app: mqtt-bridge +spec: + selector: + app: mqtt-bridge + ports: + - name: mqtt + protocol: TCP + port: 1883 + targetPort: 1883 + - name: http + protocol: TCP + port: 8080 + targetPort: 8080 diff --git a/install/020-ConfigMap.yaml b/install/020-ConfigMap.yaml new file mode 100644 index 0000000..b327181 --- /dev/null +++ b/install/020-ConfigMap.yaml @@ -0,0 +1,32 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: mqtt-bridge-config + labels: + app: mqtt-bridge +data: + application.properties: | + #Bridge related settings + bridge.id=my-bridge + + #MQTT server common + mqtt.host=0.0.0.0 + mqtt.port=1883 + #Apache Kafka common + kafka.bootstrap.servers=my-cluster-kafka-bootstrap:9092 + topic-mapping-rules.json: '[]' + log4j2.properties: | + name=MqttBridgeConfig + appender.console.type=Console + appender.console.name=STDOUT + appender.console.layout.type=PatternLayout + appender.console.layout.pattern=%d{yyyy-MM-dd HH:mm:ss} %-5p [%t] %c{1}:%L - %m%n + rootLogger.level=INFO + rootLogger.appenderRefs=console + rootLogger.appenderRef.console.ref=STDOUT + rootLogger.additivity=false + logger.bridge.name=io.strimzi.kafka.bridge.mqtt + logger.bridge.level=INFO + logger.bridge.appenderRefs=console + logger.bridge.appenderRef.console.ref=STDOUT + logger.bridge.additivity=false \ No newline at end of file diff --git a/install/030-Deployment.yaml b/install/030-Deployment.yaml new file mode 100644 index 0000000..91cc084 --- /dev/null +++ b/install/030-Deployment.yaml @@ -0,0 +1,41 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mqtt-bridge-deployment + labels: + app: mqtt-bridge +spec: + replicas: 1 + selector: + matchLabels: + app: mqtt-bridge + template: + metadata: + labels: + app: mqtt-bridge + spec: + containers: + - name: mqtt-bridge + image: quay.io/strimzi/mqtt-bridge:0.1.0 + command: ["/opt/strimzi/bin/docker/mqtt_bridge_run.sh"] + ports: + - containerPort: 1883 + volumeMounts: + - name: mqtt-bridge-config-volume + mountPath: /opt/strimzi/config/ + livenessProbe: + httpGet: + path: /healthy + port: 8080 + initialDelaySeconds: 10 + periodSeconds: 30 + readinessProbe: + httpGet: + path: /ready + port: 8080 + initialDelaySeconds: 10 + periodSeconds: 30 + volumes: + - name: mqtt-bridge-config-volume + configMap: + name: mqtt-bridge-config \ No newline at end of file diff --git a/packaging/install/030-Deployment.yaml b/packaging/install/030-Deployment.yaml index 96323eb..91cc084 100644 --- a/packaging/install/030-Deployment.yaml +++ b/packaging/install/030-Deployment.yaml @@ -16,7 +16,7 @@ spec: spec: containers: - name: mqtt-bridge - image: quay.io/strimzi/mqtt-bridge:latest + image: quay.io/strimzi/mqtt-bridge:0.1.0 command: ["/opt/strimzi/bin/docker/mqtt_bridge_run.sh"] ports: - containerPort: 1883 diff --git a/pom.xml b/pom.xml index 7e4562b..a3c36fd 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.strimzi mqtt-bridge - 0.1.0-SNAPSHOT + 0.1.0 17 diff --git a/release.version b/release.version index b694fe3..6e8bf73 100644 --- a/release.version +++ b/release.version @@ -1 +1 @@ -0.1.0-SNAPSHOT +0.1.0