StaticSite CRD#

The StaticSite Custom Resource Definition is the primary API for deploying static websites.

API Version: pages.kup6s.com/v1beta1 Kind: StaticSite

Spec Fields#

FieldTypeRequiredDefaultDescription
repostringYes-Git repository URL (HTTPS)
branchstringNomainGit branch to track
pathstringNo/Subpath in repo to serve
pathPrefixstringNo-URL path prefix (requires domain)
domainstringNo<name>.<pages-domain>Custom domain
visibilitystringNoPublicPublic or Private. A private site gets no IngressRoute, Middleware, Certificate or auto-generated domain; see Private Sites
secretRef.namestringNo-Secret name with Git credentials
secretRef.keystringNopasswordKey in Secret for the token
syncIntervalstringNo5mHow often to pull updates

The API server rejects a Private site that sets domain or pathPrefix.

Status Fields#

FieldTypeDescription
phasestringPending, Syncing, Ready or Error; derived from the Synced condition and reconcile errors
messagestringHuman-readable status message
lastSynctimestampTimestamp of last successful sync
lastCommitstringShort SHA of the last synced commit
urlstringFull URL of the deployed site; empty for private sites
internalURLstringIn-cluster address of the site, served by nginx, e.g. http://kup6s-pages-nginx.kup6s-pages.svc/pages/my-website/
contentPathstringPath below the nginx root that serves the site, /<namespace>/<name>; written by the syncer once the site is linked there, empty while it still serves from its legacy path /<name>
syncTokenstringAuto-generated token for API authentication
conditions[]ConditionStandard Kubernetes conditions
resources.ingressRoutestringName of created IngressRoute
resources.middlewarestringName of created Middleware
resources.stripMiddlewarestringName of strip middleware (for pathPrefix)
resources.certificatestringName of created Certificate

Private sites have no resources.

Conditions#

The status includes standard Kubernetes conditions:

TypeDescription
SyncedGit repository is synced (see below)
CertificateReadyTLS certificate is issued; mirrors the Certificate’s Ready condition. Not set for private sites and for auto-generated domains in wildcard TLS mode

Synced#

Only the syncer writes this condition.

StatusReasonMeaning
TrueSyncedThe configured branch and path are checked out. lastCommit names the commit
UnknownSyncingA clone is running
FalseCloneFailed, FetchFailed, AuthFailed, SubpathMissing, DiskFull, Timeout, InvalidSpec, SyncFailedThe last sync failed. The message contains the error. The site keeps serving its last good content

kubectl get staticsites shows the condition in the Synced column.

Example#

apiVersion: pages.kup6s.com/v1beta1
kind: StaticSite
metadata:
  name: my-website
  namespace: pages
spec:
  repo: https://github.com/user/my-website.git
  branch: main
  path: /dist
  domain: www.example.com
  syncInterval: 10m
status:
  phase: Ready
  message: "Site is live"
  lastSync: "2024-01-15T10:30:00Z"
  lastCommit: "abc1234"
  url: "https://www.example.com"
  syncToken: "xxxxxxxx"
  resources:
    ingressRoute: "pages--my-website"
    middleware: "pages--my-website-prefix"
    certificate: "www-example-com-tls"

Short Names#

The CRD registers the short name ss for convenience:

kubectl get ss -n pages
kubectl describe ss my-website -n pages

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