Comment on What's the best approach to deploy a static website to K8s cluster from a CI pipeline?

ArbiterXero@lemmy.world ⁨1⁩ ⁨year⁩ ago

You need to start with docker.

Get your ci building a docker image of your site

Then host the docker image on a repo somewhere.

Once you have it running in a container you can easily find a “how to” for k8s.

The basics of k8s are:

A collection (or single in this case) of images form a pod (virtual machine) that pod exposes ports to a service.

The service is a single app comprised of a collection of pods (usually only one actually)

The service then needs to expose ports to an ingress (think of an ingress like a load balancer) and the ingress will take the external ports to the cluster and use some magic to forward traffic to you pod

source
Sort:hotnewtop