Usage#

This section covers how to deploy static websites using kup6s-pages.

Basic Example#

Create a StaticSite resource to deploy a website from a Git repository:

apiVersion: pages.kup6s.com/v1beta1
kind: StaticSite
metadata:
  name: my-website
  namespace: pages
spec:
  repo: https://github.com/user/my-website.git
  domain: www.example.com

The operator will:

  1. Create a Traefik Middleware (pages--my-website-prefix) with addPrefix: /pages/my-website
  2. Create a Traefik IngressRoute for Host(www.example.com)
  3. Create a cert-manager Certificate for the domain
  4. The Syncer clones the repo to /sites/.clones/pages/my-website/ and links /sites/pages/my-website/ to it

Check Status#

# List all sites
kubectl get staticsites -A

# Detailed status
kubectl describe staticsite my-website -n pages

# Short form
kubectl get ss -n pages

Auto-Generated Domain#

If no domain is specified, the site gets a subdomain of the configured pages domain:

apiVersion: pages.kup6s.com/v1beta1
kind: StaticSite
metadata:
  name: my-project
  namespace: pages
spec:
  repo: https://github.com/user/my-project.git
  # No domain specified → https://my-project.pages.kup6s.com

Build Output Subpath#

For sites with build tools (Vite, Hugo, Sphinx, etc.) where the output is in a subdirectory:

apiVersion: pages.kup6s.com/v1beta1
kind: StaticSite
metadata:
  name: docs
  namespace: pages
spec:
  repo: https://github.com/user/docs.git
  branch: main
  path: /dist          # Serve only the /dist directory
  domain: docs.example.com

The Syncer checks out only dist/ into /sites/.clones/pages/docs/ and links /sites/pages/docs/ → /sites/.clones/pages/docs/dist/.


Version 1.0.0-rc.8 | Built 2026-11-18
Copyright 2026 Klein & Partner KG, Völs, Austria and contributors