Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Kubernetes #853

Merged
merged 15 commits into from
Nov 9, 2024
Merged

Move to Kubernetes #853

merged 15 commits into from
Nov 9, 2024

Conversation

Xe
Copy link
Owner

@Xe Xe commented Nov 4, 2024

TODO fixes

  • Fix Patreon API calls
  • Mi is too aggressive, limit to hostname xeiaso.net
  • Document that I'm stashing all the data in /data/xesite on the worker nodes directly, this is a bad idea
  • Figure out kustomize variables to annotate docker builds with commit hash
  • The website pods do a site build on app start, probably need to cache these in Tigris and push them to Tigris in CI? -- probably not a problem due to the pod disruption budgets
  • Write blogpost
  • Rip out the zipfile
  • CD

Big deploy

  • Change REDIRECT_DOMAIN to xeiaso.net when doing the big deploy
  • Rename ZZ_MIMI_ANNOUNCE_URL in 1password to MIMI_ANNOUNCE_URL when mi is patched to only report for xeiaso.net

Things I learned for the blogpost

  • Needed to configure RBAC to get patreon-saasproxy to properly store its state in k8s secrets
  • Need to be careful about pushing this to main, that will break the existing partreon-saasproxy setup on fly.io if I am not careful
  • Annoying that I can't change the CIDRs for vultr k8s
  • Wish I could change the cluster DNS name for vultr k8s to rhadamanthus.xeserv.us so I can DNS/IP route it and access services like they were local like I have in my homelab, 4via6?
  • Wish I could beanstalk-interconnect alrest and rhadamanthus
  • Posting to mastodon made the logs unreadable lol
  • PodDisruptionBudgets are great, but you need a readinessProbe for them, readiness is different than healthiness
  • Civo k8s w/talos was kinda cursed, had issues with TLS certificates and metrics-server, tried k3s instead
  • Kinda annoying that with 3 clusters I have as many CNIs to deal with, but whatever
  • k3s worked goddamn instantly lol
  • Cannot use the same domain from multiple clusters with external-dns: Allow multiple A records for the same domain from different external-dns instances. kubernetes-sigs/external-dns#1441
  • Set up a tor hidden service with the new deployment, was basically seamless, had to patch domain_redirect.go to ignore it
  • Found a subtle bug with how domain_redirect.go would handle non-GET requests, fixed
  • Destroying rhadamanthus, Civo cloud is the ultimate winner for this due to no egress fees
  • adding the Onion-Location header was seamless
  • https://github.com/bugfest/tor-controller
  • Ripping out the zipfile means that link embeds on Slack and LinkedIn
  • had to MachineProxy back to fly.io for getting patreon API access working, need to investigate later

Xe added 3 commits November 3, 2024 21:36
Signed-off-by: Xe Iaso <me@xeiaso.net>
…for xesite as a hack

Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe self-assigned this Nov 4, 2024
Xe added 12 commits November 7, 2024 10:26
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <me@xeiaso.net>
@Xe Xe merged commit 20d07c7 into main Nov 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant