I wrote this code for a job interview, but I didn't get the job so I have made it open-source. It might be a good reference for someone?
Also if you star my github repo I'll pay you 1500 sats.
https://github.com/kornpow/lnd-kube-ha
1. It uses `lndinit` to initialize and/or unlock the LND from a stored secret.
2. Configures LND to use the postgres DB backend
3. It uses ETCD leader election, so you can have a high-availability LND deployment where if one goes down, a second replica, (on a different machine) can take over the Lightning Ops.
4. It runs the Aperture server to create a Lightning Paywall.
I really, really, really want to have a career working with Bitcoin and Lightning, so if you know anyone hiring please send them my way!
nostr:nprofile1qyvhwumn8ghj7urjv4kkjatd9ec8y6tdv9kzumn9wshsz9nhwden5te0wfjkccte9ec8y6tdv9kzumn9wsqzpy3fg4melylapvm4nug40c7elgs08lfycju09084yr9v7ey67amd8gg8xl nostr:nprofile1qyxhwumn8ghj7mn0wvhxcmmvqyehwumn8ghj7mnhvvh8qunfd4skctnwv46z7ctewe4xcetfd3khsvrpdsmk5vnsw96rydr3v4jrz73hvyu8xqpqsg6plzptd64u62a878hep2kev88swjh3tw00gjsfl8f237lmu63q8dzj6n nostr:nprofile1qyv8wumn8ghj7urjv4kkjatd9ec8y6tdv9kzumn9wsq3vamnwvaz7tmjv4kxz7fwwpexjmtpdshxuet5qqsqfjg4mth7uwp307nng3z2em3ep2pxnljczzezg8j7dhf58ha7ejgqgzx3h nostr:nprofile1qyxhwumn8ghj7mn0wvhxcmmvqy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsqgzakfxj7zdnuj2h2xvk03nqyucdaddvdagw90gxv8qykfr39ktl5gmenkd7 nostr:nprofile1qy2hwumn8ghj7mn0wd68ytndv9kxjm3wdahxcqg5waehxw309ahx7um5wfekzarkvyhxuet5qqsw4v882mfjhq9u63j08kzyhqzqxqc8tgf740p4nxnk9jdv02u37ncdhu7e3 nostr:nprofile1qyv8wumn8ghj7urjv4kkjatd9ec8y6tdv9kzumn9wsq3yamnwvaz7tmsw4e8qmr9wpskwtn9wvqzpcs03gur430p2dnpq8qkprhy7vl63vkhjfgvav444z465su55mnujc3akf nostr:nprofile1qy88wumn8ghj7mn0wvhxcmmv9uq37amnwvaz7tmwdaehgu3dwfjkccte9ejx2un9ddex7umn9ekk2tcqyqlhwrt96wnkf2w9edgr4cfruchvwkv26q6asdhz4qg08pm6w3djg3c8m4j nostr:nprofile1qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcpzemhxue69uhks6tnwshxummnw3ezumrpdejz7qpq2rv5lskctqxxs2c8rf2zlzc7xx3qpvzs3w4etgemauy9thegr43sugh36r nostr:nprofile1qythwumn8ghj7mn0wd68ytnxd46zuamf0ghxy6t6qy28wumn8ghj7mn0wd68ytn00p68ytnyv4mqqgzccaq65ccv9k3454480sws2wqepz73q5z0m5kckslhyhh6d533jc25xncl nostr:nprofile1qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcppemhxue69uhkummn9ekx7mp0qqs9avl6hmfcqrma3s3haa94c4h436skujtl44qvlht59hwhxksr8ngaflajl nostr:nprofile1qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcpzamhxue69uhkvet9v3ejumn0wd68ytnzv9hxgtcqyz6d3qr7mlarzntgy62ec0wxx6q7ckw02hel5uneaws7gmgj8lff76mxx35 nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qpq0vkwadgkfkg9vzpe04a6rhpzrd8rlw0r84qelag5hgtycrykgz3qyzqfdf nostr:nprofile1qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcp2amhxue69uhkv6tvw3jhytnwdaehgu3wwa5kuef0dec82c33wv6hjufkwaskgamj0pjx2drvdpn8xdfkvahrvdrgwaa826rwvesnvu3ed44rgdekwg6hxdrgdd6ku7n80fchyuekwymh5qpqs5yq6wadwrxde4lhfs56gn64hwzuhnfa6r9mj476r5s4hkunzgzqjx5gu2