Skip to content
imlostincode
ENNL
Deployment kit

astro-k8s-deployment-kit

Shared deploy setup for Astro sites. Fix it once, and every site picks it up on its next update.

UnreleasedYou're reading the docs from main. Things here can change before the next release.Back to the latest release →
examples / main

overlay-staging/kustomizeconfig.yaml

View on GitHub ↗ (opens in a new tab)
yaml
# Traefik CRDs are unknown to kustomize's built-in name references, so without
# this an overlay's namePrefix renames the Service but leaves the IngressRoute
# pointing at the old name.
nameReference:
  - kind: Service
    fieldSpecs:
      - path: spec/routes/services/name
        kind: IngressRoute
  - kind: Middleware
    fieldSpecs:
      - path: spec/routes/middlewares/name
        kind: IngressRoute
  - kind: Secret
    fieldSpecs:
      - path: spec/basicAuth/secret
        kind: Middleware
      - path: spec/tls/secretName
        kind: IngressRoute
  - kind: TLSOption
    fieldSpecs:
      - path: spec/tls/options/name
        kind: IngressRoute