Skip to content

Commit

Permalink
Prepare for 0.1.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno committed Dec 24, 2023
1 parent 02f039f commit df283fd
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 3 deletions.
6 changes: 6 additions & 0 deletions install/000-ServiceAccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: mqtt-bridge
labels:
app: mqtt-bridge
18 changes: 18 additions & 0 deletions install/010-Service.yaml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions install/020-ConfigMap.yaml
Original file line number Diff line number Diff line change
@@ -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
41 changes: 41 additions & 0 deletions install/030-Deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion packaging/install/030-Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.strimzi</groupId>
<artifactId>mqtt-bridge</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.1.0</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion release.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0-SNAPSHOT
0.1.0

0 comments on commit df283fd

Please sign in to comment.