-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kafka-bridge chart services and mqtt-bridge deployment
- Loading branch information
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
helm/charts/kafka-bridges/templates/mqtt-bridge-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
# yamllint disable rule:line-length | ||
# yamllint disable rule:braces | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mqtt-bridge | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: mqtt-bridge | ||
spec: | ||
replicas: {{ .Values.kafkaBridge.mqtt.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app: mqtt-bridge | ||
template: | ||
metadata: | ||
labels: | ||
app: mqtt-bridge | ||
annotations: | ||
checksum/config: {{ include (print $.Template.BasePath "/bridge-configmap.yaml") . | sha256sum }} | ||
spec: | ||
containers: | ||
- name: mqtt-bridge | ||
image: '{{ .Values.mainRepo }}/kafka-bridge:{{ .Values.mainVersion }}' | ||
command: ["node"] | ||
args: ["/opt/mqttBridge/app.js"] | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: {{ .Values.mqtt.bridge.port }} | ||
name: rest | ||
env: | ||
- name: MQTT_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: keycloak-client-secret-mqtt-broker | ||
key: CLIENT_SECRET | ||
livenessProbe: | ||
exec: | ||
command: | ||
- cat | ||
- /tmp/healthy | ||
initialDelaySeconds: 300 | ||
readinessProbe: | ||
exec: | ||
command: | ||
- cat | ||
- /tmp/ready | ||
initialDelaySeconds: 5 | ||
volumeMounts: | ||
- name: config | ||
mountPath: /opt/config | ||
readOnly: true | ||
resources: | ||
volumes: | ||
- name: config | ||
configMap: | ||
# Provide the name of the ConfigMap you want to mount. | ||
name: bridge-configmap | ||
# An array of keys from the ConfigMap to create as files | ||
items: | ||
- key: "config.json" | ||
path: "config.json" | ||
imagePullSecrets: | ||
- name: {{ .Values.pullSecretCredentials }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mqtt-bridge | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: mqtt-bridge | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: {{ .Values.mqtt.bridge.port }} | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app: mqtt-bridge |