Created
October 22, 2024 14:09
-
-
Save cedricve/24242d7f22d64d7705839c8650a04316 to your computer and use it in GitHub Desktop.
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
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