next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt| #!/usr/bin/env bash | |
| # | |
| # Certbot Nginx Reload | |
| # | |
| # Let's Encrypt Certbot post hook command for Nginx which checks the updated | |
| # configuration files and reloads the server if everything validates. | |
| # | |
| # Author : Justin Hartman <[email protected]> | |
| # Version : 1.0.1 | |
| # License : MIT <https://opensource.org/licenses/MIT> |
| # This will hide | |
| defaults write com.apple.finder CreateDesktop -bool false; killall Finder | |
| # This will show them back | |
| defaults write com.apple.finder CreateDesktop -bool true; killall Finder |
| -- Made by Jairo Tylera | |
| -- (github.com/Tylerian) | |
| -- (c) 2019 - present | |
| -- Released under MIT X11 License | |
| CREATE | |
| DEFINER=`root`@`localhost` | |
| FUNCTION | |
| `ST_Epgs3857_DWithin`(p1 POINT, p2 POINT, distance_mts FLOAT) | |
| RETURNS |
Mostly used by me for Hetzner cloud, but should work with all Public Cloud server providers.
Using only kubeadm and helm from Fedora's repository Instructions are for Fedora 37+ only, using distribution's repository for installing Kubernetes.
Note: avoid kubernetes and kubernetes-master as there are deprecated and setup is more complex.
Note: I have not yet tinkered using ipv6, but it is in my plans to do it.
The result should be a decent Kubernetes cluster, with Cloud Control Manager installed and controlling layer 2 private networking allowing pods to talk at fastest speed possible. Will default to Hetzner's cloud volumes.
Scaling up the control plane nodes is a bit more complicated. That's because the worker nodes can be easily replaced and/or powered off, but that's not the case for the control plane nodes.
In this case, you can't rely on Terraform to scale up the control plane nodes for you, because Terraform would power off all control plane nodes at the same time, which could make etcd lose the quorum (in that case your cluster would be corrupt/lost).
I haven't tested it, but I think you might have success if you do something like this:
Drain one of the control plane nodes (kubectl drain ) SSH to that node and power it off (sudo poweroff)
| # hel1, CX51, Ubuntu 20.04, 10 GB EXT4 Volume, 240 GB EXT4 Volume | |
| # local NVME | |
| root@ubuntu-32gb-hel1-1:~# hdparm -Tt /dev/sda | |
| /dev/sda: |