|
1 week ago | |
---|---|---|
build | 1 year ago | |
cmd/manager | 1 week ago | |
deploy | 1 week ago | |
helm_chart | 1 week ago | |
pkg | 8 months ago | |
vendor | 1 week ago | |
version | 1 week ago | |
.gitignore | 1 year ago | |
Dockerfile | 1 week ago | |
Jenkinsfile | 1 week ago | |
README.md | 8 months ago | |
go.mod | 1 week ago | |
go.sum | 8 months ago | |
logo.png | 1 year ago | |
tools.go | 1 year ago |
Run multiple MQTT instances in your Kubernetes cluster. Can store persistent database.
Makefile
and change images registry to yoursmake
commandYou can find images here https://hub.docker.com/r/iam21h/mqtt-operator
helm repo add 21h https://charts.blindage.org
helm repo update
helm install mqtt-operator 21h/mqtt-operator -n operators
You can install namespaced or cluster scoped operator.
kubectl -f deploy/service_account.yaml
kubectl -f deploy/role.yaml
kubectl -f deploy/role_binding.yaml
kubectl -f deploy/operator.yaml
Look to pkg/apis/blindage/v1alpha1/mqtt_types.go
to find more parameters like affinity or annotations.
This resource can help you run your first instance:
apiVersion: blindage.org/v1alpha1
kind: MQTT
metadata:
name: mymqtt
spec:
autosaveInterval: 600
autosaveOnChanges: True
allowAnonymous: False
persistent: True
persistentVolumeSize: 1Gi
users:
myuser: mypassword
penis: huy2
PVC owned by MQTT resource, so be careful.
Copyright by Vladimir Smagin (21h) 2019
http://blindage.org email: 21h@blindage.org
Project page: https://git.blindage.org/21h/mqtt-operator