kustomization.yaml 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # Kustomize entrypoint (task 46).
  2. #
  3. # Validate: `kustomize build deploy/k8s`
  4. # Dry-run against a cluster: `kubectl apply --dry-run=server -k deploy/k8s`
  5. #
  6. # Release pinning: CI resolves the floating tags below to immutable digests
  7. # (`kustomize edit set image d-oauth-server=ghcr.io/...@sha256:<digest>`)
  8. # after `docker buildx bake` pushes, so a rollout can never float. The
  9. # committed file intentionally carries tags; the pinned build is what ships.
  10. apiVersion: kustomize.config.k8s.io/v1beta1
  11. kind: Kustomization
  12. namespace: d-oauth
  13. resources:
  14. - namespace.yaml
  15. - configmap.yaml
  16. - secret.yaml
  17. - service.yaml
  18. - deployment.yaml
  19. - migrate-job.yaml
  20. - pdb.yaml
  21. images:
  22. - name: ghcr.io/d-oauth/d-oauth-server
  23. newName: ghcr.io/d-oauth/d-oauth-server
  24. newTag: latest
  25. # NOTE: no Ingress resource is shipped on purpose. In-process mTLS
  26. # verification needs L4/TCP passthrough (NLB gateway / TLSRoute); an L7
  27. # ingress that terminates TLS strips the client certificate. Adding an
  28. # Ingress while `D_OAUTH_TLS__CLIENT_CA_PATH` is set fails
  29. # `scripts/check_manifests.py`. See docs/DEPLOYMENT.md.