Skip to content

Instantly share code, notes, and snippets.

View albertcard's full-sized avatar

Albert Cardenas albertcard

  • Red Hat, Inc.
  • San Antonio, Texas
View GitHub Profile
@albertcard
albertcard / ratgdoSetup.md
Last active March 8, 2024 18:48
HomeAssistant + MQTT + Ratgdo with Genie 2028 Garage Door Opener

HomeAssistant + MQTT + Ratgdo w/ Genie 2028 Garage Door

Create HomeAssistant Components

  1. Launch a HomeAssistant container and go through the setup
docker run -d \
  --name homeassistant \
  --restart=always \
  -v /data/homeassistant:/config \

Convert a Worker Node to Master Node

  1. Put broken "master" node in maintenance, drain and shutdown -- if you can't shutdown, take solace in knowing you officially broke it further with the 'drain' command
# oc adm cordon <masternode>
# oc adm drain <masternode> --force --ignore-daemonsets
# ssh <masternode> 'shutdown -h now'
  1. Look for busted 'etcd' pod and login to 'etcd' pod

Create NGINX Reverse Proxy from WAN>LAN over Wireguard Site2Site

Create Site2Site VPN

  • Create Ubuntu 22.04 Cloud Server (WAN) -- You can use Digital Ocean, Linode, whatever
  • Create Ubuntu 22.04 Internal Server (LAN)
---Replace the following where necessary---
<WAN_PUBLIC_IP>
<WAN_PRIVATE_KEY>
<WAN_PUBLIC_KEY>