Skip to content

Instantly share code, notes, and snippets.

@cedricve
Created October 22, 2024 14:09
Show Gist options
  • Save cedricve/24242d7f22d64d7705839c8650a04316 to your computer and use it in GitHub Desktop.
Save cedricve/24242d7f22d64d7705839c8650a04316 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: mqtt-client
namespace: kerberos-factory
spec:
containers:
# Mosquitto and mqttui on Alpine
- image: alpine
name: mqtt-client
command: ["sh", "-c"]
args: ["apk add mosquitto-clients mqttui && sleep infinity"]
# Command
mosquitto_pub --host xxx-mqtt.kerberos.io --port 1883 --message "hello" --topic "test" -u mqtt -P xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment