Miminal container with nginx, optimized for serving static content in kubernetes cluster.
Build your own container with static files:
$ docker build . -t my.registry.com/path/to/image:v1.0.0
$ docker push my.registry.com/path/to/image:v1.0.0
Customize template github.com/4ops/static
with local kustomization.yaml
:
Deploy your configuration:
$ kubectl apply -k .
Kustomize template for GitLab CI example:
$ cat <<EOF | kubectl apply -k -
namespace: ${CI_ENVIRONMENT_NAME}
namePrefix: ${CI_PROJECT_NAME}-
nameSuffix: -content
commonLabels:
component: landing
project: ${CI_PROJECT_NAME}
bases:
- github.com/4ops/static
- github.com/4ops/static/add/pdb
images:
- name: 4ops/static
newName: ${CI_REGISTRY_IMAGE}
newTag: ${CI_PIPELINE_ID}
EOF