mqtt是干嘛的,网上有很多资料,这里就不再赘述。
---
apiVersion: apps/v1
kind: Deployment
metadata:labels:app: mqttname: mqttnamespace: default
spec:replicas: 1selector:matchLabels:app: mqttstrategy:rollingUpdate:maxSurge: 25%maxUnavailable: 25%type: RollingUpdatetemplate:metadata:labels:app: mqttspec:containers:- image: 'emqx/emqx:latest'imagePullPolicy: Alwaysname: mqttports:- containerPort: 18083name: dashboardprotocol: TCP- containerPort: 8083name: dataprotocol: TCPresources: {}terminationMessagePath: /dev/termination-logterminationMessagePolicy: FilednsPolicy: ClusterFirstrestartPolicy: AlwaysschedulerName: default-schedulersecurityContext: {}terminationGracePeriodSeconds: 30---
apiVersion: v1
kind: Service
metadata:annotations: {}labels:app: mqttname: mqtt-svcnamespace: default
spec:ports:- name: cbf36mnodePort: 32004port: 18083protocol: TCPtargetPort: 18083- name: tffafanodePort: 31238port: 8083protocol: TCPtargetPort: 8083selector:app: mqttsessionAffinity: Nonetype: NodePort
登录账号:admin
密码:public