tls-secret.example.yaml 966 B

12345678910111213141516171819202122232425
  1. # TLS + client-CA material (task 46). EXAMPLE ONLY — not in kustomization.
  2. #
  3. # The Deployment mounts the `d-oauth-tls` Secret read-only at `/certs`.
  4. # Provision it with cert-manager (preferred) or create it by hand:
  5. #
  6. # kubectl create secret generic d-oauth-tls -n d-oauth \
  7. # --from-file=tls.crt=./tls.crt \
  8. # --from-file=tls.key=./tls.key \
  9. # --from-file=client-ca.crt=./client-ca.crt
  10. #
  11. # `client-ca.crt` is REQUIRED while `D_OAUTH_TLS__CLIENT_CA_PATH` is set in
  12. # the ConfigMap (in-process mTLS verification). Omit the file AND unset the
  13. # env key together if mTLS is not used. Never bake this material into the
  14. # image; `scripts/check_manifests.py` fails on PEM blocks inside manifests.
  15. # ---
  16. # apiVersion: v1
  17. # kind: Secret
  18. # metadata:
  19. # name: d-oauth-tls
  20. # namespace: d-oauth
  21. # type: kubernetes.io/tls
  22. # stringData:
  23. # tls.crt: "<server certificate PEM>"
  24. # tls.key: "<server private key PEM>"
  25. # client-ca.crt: "<client CA bundle PEM>"