Skip to content

Instantly share code, notes, and snippets.

View thumbeyashwath's full-sized avatar
💭
I may be slow to respond.

thumbeyashwath

💭
I may be slow to respond.
  • 13:08 (UTC +05:30)
View GitHub Profile
@thumbeyashwath
thumbeyashwath / traefik_tcp_mqtt_mosquitto_docker_compose.md
Created March 11, 2023 13:48 — forked from gimiki/traefik_tcp_mqtt_mosquitto_docker_compose.md
Traefik Reverse Proxy - Mosquitto MQTT Broker - Docker Container

This gist is to configure a Mosquitto MQTT Broker behind a Traefik reverse-proxy, both in a docker container. Mosquitto will be configuread as a TCP Service.

This is a simple configuration used on the same single server. Probably to be adapted for other cases. Having mosquitto behind a reverse proxy enables you to configure TLS on Traefik (likely you already do that for other applications as well) and to load balance different MQTT instances, but that goes beyond this gist.

As noted in Traefik docs, in the router you must use the rule HostSNI(`*`) when using non-TLS routers like in this example. Ref. https://docs.traefik.io/routing/routers/#rule_1

docker-compose.yml

@thumbeyashwath
thumbeyashwath / kubernetes_commands.md
Created May 12, 2021 13:45 — forked from edsiper/kubernetes_commands.md
Kubernetes Useful Commands
@thumbeyashwath
thumbeyashwath / readme.md
Created April 23, 2021 00:25 — forked from olvesh/readme.md
Kubernetes and Kops migrate from public to private topology

From public to private topology

Run kops get cluster -o yaml --full > cluster-full.yaml for reference and backup

Bastion and weave networking

kops edit cluster:

  • change networking to
    spec: 
      networking:
        weave: