remove for now
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
f79b049f20
commit
bbe6e8eadc
6 changed files with 0 additions and 130 deletions
|
@ -1,24 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: mosquitto-config
|
|
||||||
data:
|
|
||||||
mosquitto.conf: |
|
|
||||||
|
|
||||||
persistence true
|
|
||||||
persistence_location /mosquitto/data/
|
|
||||||
log_dest stdout
|
|
||||||
|
|
||||||
password_file /mosquitto/data/auth
|
|
||||||
|
|
||||||
# MQTTS listener
|
|
||||||
listener 8883
|
|
||||||
protocol mqtt
|
|
||||||
|
|
||||||
cafile /etc/ssl/certs/ca-certificates.crt
|
|
||||||
keyfile /mosquitto/certs/tls.key
|
|
||||||
certfile /mosquitto/certs/tls.crt
|
|
||||||
|
|
||||||
# WS Listener
|
|
||||||
listener 9001
|
|
||||||
protocol websockets
|
|
|
@ -1,37 +0,0 @@
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: mosquitto
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: mosquitto
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: mosquitto
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: mosquitto
|
|
||||||
image: eclipse-mosquitto
|
|
||||||
ports:
|
|
||||||
- containerPort: 8883
|
|
||||||
- containerPort: 9001
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /mosquitto/config/
|
|
||||||
name: config
|
|
||||||
- mountPath: /mosquitto/certs/
|
|
||||||
name: certs
|
|
||||||
- mountPath: /mosquitto/data/
|
|
||||||
name: data
|
|
||||||
volumes:
|
|
||||||
- name: config
|
|
||||||
configMap:
|
|
||||||
name: mosquitto-config
|
|
||||||
- name: certs
|
|
||||||
secret:
|
|
||||||
secretName: mosquitto-certs
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: mosquitto-data
|
|
|
@ -1,23 +0,0 @@
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: mosquitto
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt"
|
|
||||||
external-dns.alpha.kubernetes.io/target: home.martyn.berlin
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- iot.martyn.berlin
|
|
||||||
rules:
|
|
||||||
- host: iot.martyn.berlin
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: mosquitto-ws
|
|
||||||
port:
|
|
||||||
number: 9001
|
|
|
@ -1,11 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: mosquitto-data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
storageClassName: longhorn-fast
|
|
|
@ -1,21 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: mosquitto-mqtts
|
|
||||||
spec:
|
|
||||||
type: LoadBalancer
|
|
||||||
selector:
|
|
||||||
app: mosquitto
|
|
||||||
ports:
|
|
||||||
- port: 8883
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: mosquitto-ws
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: mosquitto
|
|
||||||
ports:
|
|
||||||
- port: 9001
|
|
|
@ -1,14 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: external-mqtt
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: external-mqtt
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
project: infra
|
|
||||||
source:
|
|
||||||
path: apps-kustomized/external-mqtt
|
|
||||||
repoURL: https://git.martyn.berlin/martyn/infra4talos
|
|
||||||
targetRevision: HEAD
|
|
Loading…
Add table
Reference in a new issue