You need to get a subdomain. It should be two words separated by a hyphen. Then you use that as the address.
If your address is glossy-mouse, the address will be glossy-mouse.mytailnet.ts.net.
I imagine you are using k8s because you want to learn the platform.
In a real cluster with multiple machines, you don’t know which machine will run your container (that’s the point of clusters).
Do you need to host your files on a storage server and link these files to the containers through nfs.
See this post for an example on his to do it.
If you enable Tailscale DNS, you can even mount the share using the host subdomain instead of using the ip address.
My advice would be to have the server running on the cluster serving the static folder mounted through a network drive in the container. Then you just need to sync the content to the drive as the last step in your CI.
Alternatively, you will need to bake the static content in the container but then you will have to host it somewhere for the closer to get.
I would suggest using Tailscale. It’s an app that runs on your local and remote computers. You log in with your google account, get a special up address that starts with 100.x.x.x. Then you use the special IP address to connect through ssh or mount a volume through samba.
Fair enough. If you want to self host, you can go with forgjo as your web ui and forgjo CI/woodpecker CI for building and deploying the site.
I don’t know of any other self-hostable way to build and push a static site. There was forestry but they discontinued it for a paid service.
You can do all of the through GitHub and GitHub actions by picking a static website generator.
It’s amazing how people easily forget about lavabit and what a company that is committed to real privacy is about.